From 2713a451f5c33bc17e2d79cfaedbb074c716b896 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Tue, 25 Nov 2008 10:19:03 -0700 Subject: * Added close_fds=True to sub_process calls. --- func/minion/modules/hardware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'func/minion/modules/hardware.py') diff --git a/func/minion/modules/hardware.py b/func/minion/modules/hardware.py index 5a72da4..8c0852f 100644 --- a/func/minion/modules/hardware.py +++ b/func/minion/modules/hardware.py @@ -36,7 +36,7 @@ class HardwareModule(func_module.FuncModule): for easier parsing. Each device is a entry in the return hash. """ - cmd = sub_process.Popen(["/usr/bin/lshal"],shell=False,stdout=sub_process.PIPE) + cmd = sub_process.Popen(["/usr/bin/lshal"],shell=False,stdout=sub_process.PIPE,close_fds=True) data = cmd.communicate()[0] data = data.split("\n") -- cgit