interupted syscall

This commit is contained in:
bigeagle 2014-10-22 16:00:27 +08:00
parent 3edc83044e
commit 658cf8336c

View File

@ -207,7 +207,10 @@ class TUNASync(object):
signal.signal(signal.SIGUSR2, self.reload_mirrors_force)
while 1:
name, status = self.channel.get()
try:
name, status = self.channel.get()
except IOError:
continue
if status == "QUIT":
print("New configuration applied to {}".format(name))