debt - handle SIGPIPE on more processes

This commit is contained in:
Benjamin Pasero
2018-08-31 16:03:07 +02:00
parent 5af49d5ba2
commit d8e9d0ed87
4 changed files with 12 additions and 0 deletions

6
src/bootstrap.js vendored
View File

@@ -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']);