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

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

 



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

diff --git a/func/minion/modules/snmp.py b/func/minion/modules/snmp.py
index c06655d..6ed0353 100644
--- a/func/minion/modules/snmp.py
+++ b/func/minion/modules/snmp.py
@@ -29,7 +29,7 @@ class Snmp(func_module.FuncModule):
         """
         command = '%s -c %s %s %s' % (base_snmp_command, rocommunity,
hostname, oid)

-        cmdref =
sub_process.Popen(command.split(),stdout=sub_process.PIPE,stderr=sub_process.PIPE,
shell=False)
+        cmdref =
sub_process.Popen(command.split(),stdout=sub_process.PIPE,stderr=sub_process.PIPE,
shell=False, close_fds=True)
         data = cmdref.communicate()
         return (cmdref.returncode, data[0], data[1])

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