1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 04:48:00 +01:00

daemon will now fork

This commit is contained in:
compwiz18
2007-07-24 06:31:07 +00:00
parent 85d3730249
commit c6e779142e

View File

@@ -1026,7 +1026,7 @@ class ConnectionWizard(dbus.service.Object):
## fork from the parent terminal ## fork from the parent terminal
## borrowed from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012 ## borrowed from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012
if not True: #for easy disabling if True: #for easy disabling
try: try:
pid = os.fork() pid = os.fork()
if pid > 0: if pid > 0:
@@ -1054,8 +1054,8 @@ if not True: #for easy disabling
#kill output #kill output
#POI:500 stdout redirection #POI:500 stdout redirection
output = FlushWriter() output = FlushWriter()
#sys.stdout = output #open("data/wicd.log","w") sys.stdout = output #open("data/wicd.log","w")
#sys.stderr = output sys.stderr = output
print "---------------------------" print "---------------------------"
print "wicd initalizing..." print "wicd initalizing..."