This commit is contained in:
Soren Hansen
2011-03-10 21:31:47 +01:00
parent 68582b4cba
commit fcba00c480

View File

@@ -166,9 +166,9 @@ def execute(*cmd, **kwargs):
stdout=stdout, stdout=stdout,
stderr=stderr, stderr=stderr,
cmd=' '.join(cmd)) cmd=' '.join(cmd))
# NOTE(termie): this appears to be necessary to let the subprocess call # NOTE(termie): this appears to be necessary to let the subprocess
# clean something up in between calls, without it two # call clean something up in between calls, without
# execute calls in a row hangs the second one # it two execute calls in a row hangs the second one
greenthread.sleep(0) greenthread.sleep(0)
return result return result
except ProcessExecutionError: except ProcessExecutionError: