summaryrefslogtreecommitdiff
path: root/py/python/Ice.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r--py/python/Ice.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py
index ade36301d54..babc154c7e5 100644
--- a/py/python/Ice.py
+++ b/py/python/Ice.py
@@ -858,12 +858,14 @@ class Application(object):
def userCallbackOnInterruptCallback(self, sig):
self._condVar.acquire()
- if self._destroyed or self._nohup and sig == signal.SIGHUP:
+ if self._destroyed:
#
- # Being destroyed by main thread, or nohup.
+ # Being destroyed by main thread.
#
self._condVar.release()
return
+ # For SIGHUP the user callback is always called. It can decide
+ # what to do.
self._callbackInProcess = True
self._interrupted = True