daemon: use Popen with close_fds=True

This commit is contained in:
ThomasV 2014-07-25 11:13:49 +02:00
parent 8196bc5779
commit 3e6f903da3

View file

@ -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: