daemon: use Popen with close_fds=True
This commit is contained in:
2
electrum
2
electrum
@@ -158,7 +158,7 @@ def daemon_socket(start_daemon=True):
|
|||||||
elif not daemon_started:
|
elif not daemon_started:
|
||||||
import subprocess
|
import subprocess
|
||||||
logfile = open(os.path.join(config.path, 'daemon.log'),'w')
|
logfile = open(os.path.join(config.path, 'daemon.log'),'w')
|
||||||
p = subprocess.Popen([__file__,"daemon","start"], stderr=logfile, stdout=logfile)
|
p = subprocess.Popen([__file__,"daemon","start"], stderr=logfile, stdout=logfile, close_fds=True)
|
||||||
print "starting daemon (PID %d)"%p.pid
|
print "starting daemon (PID %d)"%p.pid
|
||||||
daemon_started = True
|
daemon_started = True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user