summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2014-05-07 08:09:46 -0500
committerJames Cammarata <jimi@sngx.net>2014-05-07 08:26:06 -0500
commit7daaabdedb747e0ee0d44cb9750cc34c0ae6e547 (patch)
treeb56782bda83c9b744d12038496d7f7075c9eeb15 /library
parent9943c5086365e69eba16ade5fb07f3a9c4e04953 (diff)
downloadansible-7daaabdedb747e0ee0d44cb9750cc34c0ae6e547.tar.gz
Close fds when running commands from the accelerate daemon
Fixes #7307
Diffstat (limited to 'library')
-rw-r--r--library/utilities/accelerate2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/utilities/accelerate b/library/utilities/accelerate
index 5a8c96c64a..bd62471316 100644
--- a/library/utilities/accelerate
+++ b/library/utilities/accelerate
@@ -479,7 +479,7 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
if executable:
use_unsafe_shell = True
- rc, stdout, stderr = self.server.module.run_command(data['cmd'], executable=executable, use_unsafe_shell=use_unsafe_shell)
+ rc, stdout, stderr = self.server.module.run_command(data['cmd'], executable=executable, use_unsafe_shell=use_unsafe_shell, close_fds=True)
if stdout is None:
stdout = ''
if stderr is None: