Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap.js')
-rw-r--r--src/bootstrap.js6
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'));
});