From: Ian Jackson Date: Mon, 20 Mar 2017 19:46:53 +0000 (+0000) Subject: move sigint X-Git-Tag: hippotat/1.0.0~55^2~223 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=37ab4cdc9ad97c3d1b2e85483bd0d9e8ed1d78c2 move sigint --- diff --git a/hippotat/__init__.py b/hippotat/__init__.py index c1ce085..d25ff06 100644 --- a/hippotat/__init__.py +++ b/hippotat/__init__.py @@ -1,5 +1,8 @@ # -*- python -*- +import signal +signal.signal(signal.SIGINT, signal.SIG_DFL) + import twisted from twisted.internet import reactor diff --git a/server b/server index db13f25..29321e9 100755 --- a/server +++ b/server @@ -1,7 +1,6 @@ #!/usr/bin/python3 -import signal -signal.signal(signal.SIGINT, signal.SIG_DFL) +from hippotat import * import sys import os @@ -22,8 +21,6 @@ import collections import syslog -from hippotat import * - clients = { } defcfg = '''