close_fds=True by default

This commit is contained in:
j 2014-08-22 18:49:11 +02:00
commit 2cd77e07a2
5 changed files with 13 additions and 14 deletions

View file

@ -23,7 +23,7 @@ def selectFolder(data):
}
'''
cmd = ['./ctl', 'ui', 'folder']
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, close_fds=True)
stdout, stderr = p.communicate()
path = stdout.decode('utf-8').strip()
return {
@ -105,7 +105,6 @@ def restart(data):
'''
restart (and upgrade if upgrades are available)
'''
#subprocess.Popen(['./ctl', 'restart'], preexec_fn=os.setpgrp, close_fds=True)
subprocess.Popen(['./ctl', 'restart'], close_fds=True)
return {}
actions.register(restart, cache=False)