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 92d7afa commit a17c20f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/node/extensionHostProcess.ts
Original file line number Diff line number Diff line change
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 a17c20f

Please sign in to comment.