*** empty log message ***

svn path=/trunk/boinc/; revision=1688
This commit is contained in:
Karl Chen 2003-07-15 22:03:04 +00:00
parent 6a3532a3fc
commit 8b44fd4a3b
1 changed files with 2 additions and 2 deletions

View File

@ -213,10 +213,10 @@ def double_fork():
# Do second fork. # Do second fork.
try: try:
pid = os.fork() pid = os.fork()
if pid > 0: sys._exit(0) # Exit second parent. if pid > 0: os._exit(0) # Exit second parent.
except OSError, e: except OSError, e:
sys.stderr.write("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror)) sys.stderr.write("fork #2 failed: (%d) %s\n" % (e.errno, e.strerror))
sys._exit(1) os._exit(1)
return 0 return 0
def write_pid_file(pidfile): def write_pid_file(pidfile):