From dfb82a25c3065208024bde1a5f4c79603ae77dc1 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 15 Jul 2020 09:51:44 -0700 Subject: [PATCH] Swallow ioctl EBADF and trace log all resize exceptions Fixes #100457 --- src/vs/workbench/contrib/terminal/node/terminalProcess.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/terminal/node/terminalProcess.ts b/src/vs/workbench/contrib/terminal/node/terminalProcess.ts index 36838ff5050..c59d62f463e 100644 --- a/src/vs/workbench/contrib/terminal/node/terminalProcess.ts +++ b/src/vs/workbench/contrib/terminal/node/terminalProcess.ts @@ -253,7 +253,8 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess this._ptyProcess.resize(cols, rows); } catch (e) { // Swallow error if the pty has already exited - if (this._exitCode !== undefined) { + this._logService.trace('IPty#resize exception ' + e.message); + if (this._exitCode !== undefined && e.message !== 'ioctl(2) failed, EBADF') { throw e; } }