[Neo-report] r2826 jm - /trunk/neo/lib/epoll.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 6 16:24:04 CEST 2011
Author: jm
Date: Tue Sep 6 16:24:04 2011
New Revision: 2826
Log:
epoll_wait may be interrupted with errno=0 when using USR1/USR2
Modified:
trunk/neo/lib/epoll.py
Modified: trunk/neo/lib/epoll.py
==============================================================================
--- trunk/neo/lib/epoll.py [iso-8859-1] (original)
+++ trunk/neo/lib/epoll.py [iso-8859-1] Tue Sep 6 16:24:04 2011
@@ -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')
More information about the Neo-report
mailing list