1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-08 23:04:19 +01:00

daemon will now daemonize

This commit is contained in:
compwiz18
2007-07-16 09:23:18 +00:00
parent b898f6908a
commit db591c345e

View File

@@ -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..."