Commits

Richard Mitchell  committed 9495cb4

Ignore signals not intended to interrupt the Python select in this case.

  • Participants
  • Parent commits 852439f

Comments (0)

Files changed (1)

File paste/httpserver.py

 #     till this is completed.
 
 import atexit
+import errno
 import traceback
 import socket, sys, threading, urlparse, Queue, urllib
 import posixpath
                     # Timeout is expected, gives interrupts a chance to
                     # propogate, just keep handling
                     pass
+                except EnvironmentError, e:
+                    if e.args[0] != errno.EINTR:
+                        raise
         finally:
             self.thread_pool.shutdown()