Commit 8d724fcb authored by Julien Muchembled's avatar Julien Muchembled

epoll_wait may be interrupted with errno=0 when using USR1/USR2

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2826 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 928ffd7f
......@@ -86,7 +86,8 @@ class Epoll(object):
timeout)
if n == -1:
e = errno.value
if e in (EINTR, EAGAIN):
# XXX: Why 0 ? Maybe due to partial workaround in neo.lib.debug.
if e in (0, EINTR, EAGAIN):
continue
else:
raise OSError(e, 'epoll_wait failed')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment