1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Keep fireball from spreading its socket around

This commit is contained in:
Daniel Hokka Zakrisson 2012-11-06 15:10:34 +01:00
parent 37bdee331c
commit cf290a0064

View file

@ -151,7 +151,7 @@ def command(data):
return dict(failed=True, msg='internal error: tmp_path is required')
log("executing: %s" % data['cmd'])
p = subprocess.Popen(data['cmd'], shell=True, stdout=subprocess.PIPE)
p = subprocess.Popen(data['cmd'], shell=True, stdout=subprocess.PIPE, close_fds=True)
(stdout, stderr) = p.communicate()
if stdout is None:
stdout = ''