From 3993396242e719d9466e67684093f58923fe4166 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 5 Sep 2018 15:52:52 -0700 Subject: [PATCH] Fix mac tererminal process tree cleanup --- src/vs/workbench/parts/terminal/node/terminalProcess.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/vs/workbench/parts/terminal/node/terminalProcess.ts b/src/vs/workbench/parts/terminal/node/terminalProcess.ts index ff218c11c80..03beafef97b 100644 --- a/src/vs/workbench/parts/terminal/node/terminalProcess.ts +++ b/src/vs/workbench/parts/terminal/node/terminalProcess.ts @@ -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 } -- GitLab