mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
daemon: use Popen with close_fds=True
This commit is contained in:
parent
8196bc5779
commit
3e6f903da3
1 changed files with 1 additions and 1 deletions
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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue