mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Move close_fds into the non windows bin
This commit is contained in:
parent
8e67a570b6
commit
40002fae22
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user