mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=1688
This commit is contained in:
parent
6a3532a3fc
commit
8b44fd4a3b
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue