Browse Source

daemon: use Popen with close_fds=True

283
ThomasV 11 years ago
parent
commit
3e6f903da3
  1. 2
      electrum

2
electrum

@ -158,7 +158,7 @@ def daemon_socket(start_daemon=True):
elif not daemon_started:
import subprocess
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
daemon_started = True
else:

Loading…
Cancel
Save