Mercurial > hg > graal-jvmci-8
diff mxtool/mx.py @ 14136:38c0db058dcd
mx: check if it's a java process before sending sigquit
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Tue, 11 Mar 2014 18:10:28 +0100 |
parents | ee66410c0679 |
children | e328f28f7401 5454f6bf50bf |
line wrap: on
line diff
--- a/mxtool/mx.py Tue Mar 11 17:48:21 2014 +0100 +++ b/mxtool/mx.py Tue Mar 11 18:10:28 2014 +0100 @@ -1465,8 +1465,15 @@ return result def _send_sigquit(): - p, _ = _currentSubprocess - if p is not None: + p, args = _currentSubprocess + + def _isJava(): + if args: + name = args[0].split("/")[-1] + return name == "java" + return False + + if p is not None and _isJava(): if get_os() == 'windows': log("mx: implement me! want to send SIGQUIT to my child process") else: