Commit 2e8b0730 authored by Antoine Catton's avatar Antoine Catton

Minor: Popen.returncode wasn't set.

TODO: Implement a real timeout instead of waiting
3 seconds each time.
parent 956d74ee
......@@ -567,7 +567,7 @@ class Slapgrid(object):
time.sleep(3) # 3 seconds timeout
if process_handler.returncode is None:
if process_handler.poll() is None:
process_handler.kill()
computer_partition.error("The promise '%s' timed out" % promise)
elif process_handler.returncode != 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment