Explorar o código

Don't barf if we get an EINTR.

Chris McDonough %!s(int64=19) %!d(string=hai) anos
pai
achega
43d82c9301
Modificáronse 1 ficheiros con 1 adicións e 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