diff py/tempserver.py @ 157:6d799bee3508

reload config on SIGHUP
author Matt Johnston <matt@ucc.asn.au>
date Thu, 03 Jan 2013 20:12:07 +0800
parents d03157c7ad60
children 256505f98c4d
line wrap: on
line diff
--- a/py/tempserver.py	Thu Jan 03 20:11:54 2013 +0800
+++ b/py/tempserver.py	Thu Jan 03 20:12:07 2013 +0800
@@ -47,7 +47,10 @@
 
         # won't return.
         while True:
-            gevent.sleep(60)
+            try:
+                gevent.sleep(60)
+            except KeyboardInterrupt:
+                break
 
     def now(self):
         return utils.monotonic_time()