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

Swallow ioctl EBADF and trace log all resize exceptions

Fixes #100457
上级 eb4a91f7
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册