Browse Source

Don't barf if we get an EINTR.

Chris McDonough 19 years ago
parent
commit
43d82c9301
1 changed files with 1 additions and 1 deletions
  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