[PATCH] * Fixed inherit fd issue for hardware module.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 func/minion/modules/hardware.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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")
-- 
1.5.6.5

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux