Move close_fds into the non windows bin

This commit is contained in:
Thomas S Hatch 2012-09-26 20:18:25 -06:00
parent 8e67a570b6
commit 40002fae22

View File

@ -115,12 +115,12 @@ def _run(cmd,
run_env.update(env)
kwargs = {'cwd': cwd,
'shell': True,
'close_fds': True,
'env': run_env,
'stdout': stdout,
'stderr':stderr}
if not os.environ.get('os', '').startswith('Windows'):
kwargs['executable'] = shell
kwargs['close_fds'] = True
# This is where the magic happens
proc = subprocess.Popen(cmd, **kwargs)