Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Rousselie <dax@happycoders.org>2008-09-04 22:58:36 +0400
committerDavid Rousselie <dax@happycoders.org>2008-09-04 22:58:36 +0400
commit812b3a7799955f04fccf229d634a14656329a782 (patch)
tree200b7214b84b2e81955ab0e7eea9d301cd9c9b29 /src
parent37babbc31c01c81485fdd6ce6ef95e3c737a0a37 (diff)
Reset signal when JCLComponent stops
darcs-hash:20080904185836-86b55-a929ae9d883d19a902daa701cb5493c47f1a11b1.gz
Diffstat (limited to 'src')
-rw-r--r--src/jcl/jabber/component.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jcl/jabber/component.py b/src/jcl/jabber/component.py
index 10126bd..77c9854 100644
--- a/src/jcl/jabber/component.py
+++ b/src/jcl/jabber/component.py
@@ -688,6 +688,8 @@ class JCLComponent(Component, object):
self.__logger.info("Connection failed, restarting.")
return (True, 5)
finally:
+ signal.signal(signal.SIGINT, signal.default_int_handler)
+ signal.signal(signal.SIGTERM, signal.default_int_handler)
if not self.running:
self._restart = False
wait_before_restart = 0