diff options
author | David Rousselie <dax@happycoders.org> | 2008-09-04 22:58:36 +0400 |
---|---|---|
committer | David Rousselie <dax@happycoders.org> | 2008-09-04 22:58:36 +0400 |
commit | 812b3a7799955f04fccf229d634a14656329a782 (patch) | |
tree | 200b7214b84b2e81955ab0e7eea9d301cd9c9b29 /src | |
parent | 37babbc31c01c81485fdd6ce6ef95e3c737a0a37 (diff) |
Reset signal when JCLComponent stops
darcs-hash:20080904185836-86b55-a929ae9d883d19a902daa701cb5493c47f1a11b1.gz
Diffstat (limited to 'src')
-rw-r--r-- | src/jcl/jabber/component.py | 2 |
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 |