mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
debt - handle SIGPIPE on more processes
This commit is contained in:
6
src/bootstrap.js
vendored
6
src/bootstrap.js
vendored
@@ -177,4 +177,10 @@ if (typeof crashReporterOptionsRaw === 'string') {
|
||||
}
|
||||
}
|
||||
|
||||
// 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'));
|
||||
});
|
||||
|
||||
require('./bootstrap-amd').bootstrap(process.env['AMD_ENTRYPOINT']);
|
||||
|
||||
Reference in New Issue
Block a user