aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/utilities.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/utilities.py b/sos/utilities.py
index d112e15a..25e10429 100644
--- a/sos/utilities.py
+++ b/sos/utilities.py
@@ -155,7 +155,8 @@ def sos_get_command_output(command, timeout=300, stderr=False,
reader = AsyncReader(p.stdout, sizelimit, binary)
stdout = reader.get_contents()
- p.poll()
+ while p.poll() == None:
+ pass
except OSError as e:
if e.errno == errno.ENOENT: