From 3e6f903da3b49548f5775266e56e5cebebf84c34 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 25 Jul 2014 11:13:49 +0200 Subject: [PATCH] daemon: use Popen with close_fds=True --- electrum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum b/electrum index dba471354..12c45636f 100755 --- a/electrum +++ b/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: