diff options
author | Silas Sewell <silas@sewell.ch> | 2008-11-25 10:19:03 -0700 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-11-25 12:58:28 -0500 |
commit | 2713a451f5c33bc17e2d79cfaedbb074c716b896 (patch) | |
tree | 6d517fdf9fc18d2680da986a003447200381928e /func/minion/modules/sysctl.py | |
parent | 6b16e2f8250ed91c4d5c7642e15b2e2d30b49352 (diff) | |
download | func-2713a451f5c33bc17e2d79cfaedbb074c716b896.tar.gz func-2713a451f5c33bc17e2d79cfaedbb074c716b896.tar.xz func-2713a451f5c33bc17e2d79cfaedbb074c716b896.zip |
* Added close_fds=True to sub_process calls.
Diffstat (limited to 'func/minion/modules/sysctl.py')
-rw-r--r-- | func/minion/modules/sysctl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/func/minion/modules/sysctl.py b/func/minion/modules/sysctl.py index 36b5605..22222f7 100644 --- a/func/minion/modules/sysctl.py +++ b/func/minion/modules/sysctl.py @@ -18,7 +18,8 @@ class SysctlModule(func_module.FuncModule): def __run(self, cmd): cmd = sub_process.Popen(cmd.split(), stdout=sub_process.PIPE, - stderr=sub_process.PIPE, shell=False) + stderr=sub_process.PIPE, shell=False, + close_fds=True) return [line for line in cmd.communicate()[0].strip().split('\n')] def list(self): |