Mercurial > hg > truffle
diff mxtool/mx.py @ 4161:8c507a8dd6a4
Interpret '--timeout 0' correctly (i.e. as no timeout).
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 23 Dec 2011 09:41:41 +0100 |
parents | f3a50640333b |
children | d1b26c17910a |
line wrap: on
line diff
--- 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':