def _send_sigquit():
for p, args in _currentSubprocesses:
def _isJava():
if args:
name = args[0].split(os.sep)[-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:
# only send SIGQUIT to the child not the process group
logv('sending SIGQUIT to ' + str(p.pid))
os.kill(p.pid, signal.SIGQUIT)
time.sleep(0.1)
评论列表
文章目录