Skip to content

Commit

Permalink
Fixes #56387: Handle SIGPIPE in extension host
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Aug 16, 2018
1 parent 49e7ddb commit 11837c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/node/extensionHostProcess.ts
Expand Up @@ -114,6 +114,10 @@ function connectToRenderer(protocol: IMessagePassingProtocol): Promise<IRenderer
onUnexpectedError(err);
});

process.on('SIGPIPE', () => {
onUnexpectedError(new Error('Unexpected SIGPIPE'));
});

// Kill oneself if one's parent dies. Much drama.
setInterval(function () {
try {
Expand Down

0 comments on commit 11837c7

Please sign in to comment.