diff options
Diffstat (limited to 'flup/server')
-rw-r--r-- | flup/server/threadedserver.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/flup/server/threadedserver.py b/flup/server/threadedserver.py index c2d0e04..bf08f52 100644 --- a/flup/server/threadedserver.py +++ b/flup/server/threadedserver.py @@ -27,6 +27,7 @@ __author__ = 'Allan Saddi <allan@saddi.com>' __version__ = '$Revision$' +import sys import socket import select import signal @@ -61,7 +62,10 @@ class ThreadedServer(object): # Set up signal handlers. self._keepGoing = True self._hupReceived = False - self._installSignalHandlers() + + # Might need to revisit this? + if not sys.platform.startswith('win'): + self._installSignalHandlers() # Set close-on-exec setCloseOnExec(sock) |