comparison 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
comparison
equal deleted inserted replaced
4160:338d46581e03 4161:8c507a8dd6a4
556 t.start() 556 t.start()
557 if err is not None: 557 if err is not None:
558 t = Thread(target=redirect, args=(p.stderr, err)) 558 t = Thread(target=redirect, args=(p.stderr, err))
559 t.daemon = True # thread dies with the program 559 t.daemon = True # thread dies with the program
560 t.start() 560 t.start()
561 if timeout is None: 561 if timeout is None or timeout == 0:
562 retcode = p.wait() 562 retcode = p.wait()
563 else: 563 else:
564 if get_os() == 'windows': 564 if get_os() == 'windows':
565 abort('Use of timeout not (yet) supported on Windows') 565 abort('Use of timeout not (yet) supported on Windows')
566 retcode = _waitWithTimeout(p, args, timeout) 566 retcode = _waitWithTimeout(p, args, timeout)