diff py/tempserver.py @ 456:3db3665af2e2

reload config on SIGHUP
author Matt Johnston <matt@ucc.asn.au>
date Thu, 03 Jan 2013 20:12:07 +0800
parents dce9f7841696
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()