Re: [PATCH] * Fixed inherit fd issue for sysctl module.

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

 



Silas Sewell wrote:

   All the fd patches merged and pushed from your git repo. Thanks!

Adrian

---
 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):

_______________________________________________
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