diff options
Diffstat (limited to 'src/bootstrap.js')
-rw-r--r-- | src/bootstrap.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap.js b/src/bootstrap.js index 85e35ab67f7..319ddba9b02 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -28,9 +28,9 @@ // increase number of stack frames(from 10, https://github.com/v8/v8/wiki/Stack-Trace-API) Error.stackTraceLimit = 100; - // Workaround for Electron not installing a handler to ignore SIGPIPE - // (https://github.com/electron/electron/issues/13254) - if (typeof process !== 'undefined') { + if (typeof process !== 'undefined' && !process.env['VSCODE_HANDLES_SIGPIPE']) { + // Workaround for Electron not installing a handler to ignore SIGPIPE + // (https://github.com/electron/electron/issues/13254) process.on('SIGPIPE', () => { console.error(new Error('Unexpected SIGPIPE')); }); |