From db591c345e1842909c310235662246a9ee581704 Mon Sep 17 00:00:00 2001 From: compwiz18 <> Date: Mon, 16 Jul 2007 09:23:18 +0000 Subject: [PATCH] daemon will now daemonize --- daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 14158bb..34aaea0 100644 --- a/daemon.py +++ b/daemon.py @@ -956,7 +956,7 @@ class ConnectionWizard(dbus.service.Object): ## fork from the parent terminal ## borrowed from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012 -if False: #True: #for easy disabling +if True: #for easy disabling try: pid = os.fork() if pid > 0: @@ -984,8 +984,8 @@ if False: #True: #for easy disabling #kill output #POI:500 stdout redirection output = FlushWriter() -#sys.stdout = output #open("data/wicd.log","w") -#sys.stderr = output +sys.stdout = output #open("data/wicd.log","w") +sys.stderr = output print "---------------------------" print "wicd initalizing..."