From b716b9aa5ba646875af15fa8d723737a1757d96a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 19 Apr 2012 16:57:43 +0200 Subject: [PATCH] catch SIGTERM so that on_exit func is executed at this time too. --- src/gajim.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gajim.py b/src/gajim.py index 329302467..49ba4122f 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -413,6 +413,7 @@ if __name__ == '__main__': sys.exit(5) # ^C exits the application normally to delete pid file signal.signal(signal.SIGINT, sigint_cb) + signal.signal(signal.SIGTERM, sigint_cb) log.info("Encodings: d:%s, fs:%s, p:%s", sys.getdefaultencoding(), \ sys.getfilesystemencoding(), locale.getpreferredencoding())