Explorar el Código

Don't barf if we get an EINTR.

Chris McDonough hace 19 años
padre
commit
43d82c9301
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/supervisor/options.py

+ 1 - 1
src/supervisor/options.py

@@ -1114,7 +1114,7 @@ class ServerOptions(Options):
         try:
             data = os.read(fd, 2 << 16) # 128K
         except OSError, why:
-            if why[0] not in (errno.EWOULDBLOCK, errno.EBADF):
+            if why[0] not in (errno.EWOULDBLOCK, errno.EBADF, errno.EINTR):
                 raise
             data = ''
         return data