diff server/ts.py @ 65:b09c164debf6

cheap_daemon()
author Matt Johnston <matt@ucc.asn.au>
date Tue, 26 Jun 2012 21:36:54 +0800
parents 340a14fcbaeb
children c5ad12670cae
line wrap: on
line diff
--- a/server/ts.py	Tue Jun 26 21:21:51 2012 +0800
+++ b/server/ts.py	Tue Jun 26 21:36:54 2012 +0800
@@ -172,6 +172,9 @@
 def main():
     next_wake_time = 0
 
+    if '--daemon' in sys.argv:
+        utils.cheap_daemon()
+
     while True:
         sock = None
         try: