summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--turbo_hipster/lib/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/turbo_hipster/lib/utils.py b/turbo_hipster/lib/utils.py
index fa295af..f0603af 100644
--- a/turbo_hipster/lib/utils.py
+++ b/turbo_hipster/lib/utils.py
@@ -186,6 +186,9 @@ def execute_to_log(cmd, logfile, timeout=-1,
# Clean up
for fd, descriptor in descriptors.items():
poll_obj.unregister(fd)
+ if fd == p.stdout.fileno():
+ # Don't try and close the process, it'll clean itself up
+ continue
os.close(fd)
try:
p.kill()