diff options
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r-- | py/python/Ice.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py index 506e2d0110a..88837d8c0bc 100644 --- a/py/python/Ice.py +++ b/py/python/Ice.py @@ -399,7 +399,8 @@ class Application(object): # Install our handler for the signals we are interested in. We assume main() # is called from the main thread. # - signal.signal(signal.SIGHUP, Application.signalHandler) + if signal.__dict__.has_key('SIGHUP'): + signal.signal(signal.SIGHUP, Application.signalHandler) signal.signal(signal.SIGINT, Application.signalHandler) signal.signal(signal.SIGTERM, Application.signalHandler) |