Mercurial > hg > graal-compiler
diff mxtool/mx.py @ 15701:16059f6f5661
mx: drain *all* output from subprocess if redirecting to functions
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 16 May 2014 12:06:46 +0200 |
parents | e563b7668db5 |
children | 8b9e7f235d85 |
line wrap: on
line diff
--- a/mxtool/mx.py Fri May 16 00:12:48 2014 -0700 +++ b/mxtool/mx.py Fri May 16 12:06:46 2014 +0200 @@ -1505,11 +1505,11 @@ sub = _addSubprocess(p, args) if callable(out): t = Thread(target=redirect, args=(p.stdout, out)) - t.daemon = True # thread dies with the program + # Don't make the reader thread a daemon otherwise output can be droppped t.start() if callable(err): t = Thread(target=redirect, args=(p.stderr, err)) - t.daemon = True # thread dies with the program + # Don't make the reader thread a daemon otherwise output can be droppped t.start() if timeout is None or timeout == 0: retcode = waitOn(p)