提交 39933962 编写于 作者: D Daniel Imms

Fix mac tererminal process tree cleanup

上级 ef9e1f1a
......@@ -104,13 +104,7 @@ export class TerminalProcess implements ITerminalChildProcess, IDisposable {
// Attempt to kill the pty, it may have already been killed at this
// point but we want to make sure
try {
if (!platform.isWindows) {
// Send SIGTERM, SIGHUP does not seem to work when the parent process dies
// immediately after.
process.kill(this._ptyProcess.pid, 'SIGTERM');
} else {
this._ptyProcess.kill();
}
this._ptyProcess.kill();
} catch (ex) {
// Swallow, the pty has already been killed
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册