fix error

This commit is contained in:
Benoit Chesneau 2009-12-03 03:16:59 +01:00
parent 21d3f7ccd9
commit 701c88c019

View File

@ -143,8 +143,9 @@ class HTTPServer(object):
time.sleep(0.1) time.sleep(0.1)
m = 0 if m == 1 else 1 m = 0 if m == 1 else 1
os.fchmod(alive, m) os.fchmod(alive, m)
except errno.EAGAIN, errno.ECONNABORTED: except IOError, e:
pass if e.errno == errno.EAGAIN or e.errno == errno.ECONNABORTED:
pass
if ppid != os.getppid(): return if ppid != os.getppid(): return
m = 0 if m == 1 else 1 m = 0 if m == 1 else 1