Swallow ioctl EBADF and trace log all resize exceptions

Fixes #100457
This commit is contained in:
Daniel Imms
2020-07-15 09:51:44 -07:00
parent eb4a91f7ee
commit dfb82a25c3
@@ -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;
}
}