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

[dak/master] Popen.communicate calls stdout.close() which looks like is causing errors w/threads..



---
 daklib/utils.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/daklib/utils.py b/daklib/utils.py
index 5c71647..c9b54d0 100755
--- a/daklib/utils.py
+++ b/daklib/utils.py
@@ -70,7 +70,9 @@ def dak_getstatusoutput(cmd):
     pipe = subprocess.Popen(cmd, shell=True, universal_newlines=True,
         stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
 
-    output, _ = pipe.communicate()
+    output = pipe.stdout.read()
+
+    pipe.wait()
 
     if output[-1:] == '\n':
         output = output[:-1]
-- 
1.5.6.5


Reply to: