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

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

 



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

diff --git a/func/minion/modules/smart.py b/func/minion/modules/smart.py
index e8e4844..26e7091 100644
--- a/func/minion/modules/smart.py
+++ b/func/minion/modules/smart.py
@@ -36,7 +36,7 @@ class SmartModule(func_module.FuncModule):

         flags.replace(";","") # prevent stupidity

-        cmd = sub_process.Popen("/usr/sbin/smartd %s" %
flags,stdout=sub_process.PIPE,shell=True)
+        cmd = sub_process.Popen("/usr/sbin/smartd %s" %
flags,stdout=sub_process.PIPE,shell=True,close_fds=True)
         data = cmd.communicate()[0]

         results = []
-- 
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