# HG changeset patch # User Doug Simon # Date 1324629701 -3600 # Node ID 8c507a8dd6a4d01de4f8bfe8e2c07e3ca29839a6 # Parent 338d46581e03cd4d0a1c84517bde8aa17e68bd79 Interpret '--timeout 0' correctly (i.e. as no timeout). diff -r 338d46581e03 -r 8c507a8dd6a4 mxtool/mx.py --- a/mxtool/mx.py Fri Dec 23 09:28:09 2011 +0100 +++ b/mxtool/mx.py Fri Dec 23 09:41:41 2011 +0100 @@ -558,7 +558,7 @@ t = Thread(target=redirect, args=(p.stderr, err)) t.daemon = True # thread dies with the program t.start() - if timeout is None: + if timeout is None or timeout == 0: retcode = p.wait() else: if get_os() == 'windows':