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/virt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'func/minion/modules/virt.py') diff --git a/func/minion/modules/virt.py b/func/minion/modules/virt.py index 2c68ab4..634a100 100644 --- a/func/minion/modules/virt.py +++ b/func/minion/modules/virt.py @@ -44,7 +44,8 @@ class FuncLibvirtConnection(object): def __init__(self): - cmd = sub_process.Popen("uname -r", shell=True, stdout=sub_process.PIPE) + cmd = sub_process.Popen("uname -r", shell=True, stdout=sub_process.PIPE, + close_fds=True) output = cmd.communicate()[0] if output.find("xen") != -1: -- cgit