From a17c20fb76357aa5d1486c56b301b24512a24ae7 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 16 Aug 2018 15:43:08 +0200 Subject: [PATCH] Fixes #56387: Handle SIGPIPE in extension host --- src/vs/workbench/node/extensionHostProcess.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vs/workbench/node/extensionHostProcess.ts b/src/vs/workbench/node/extensionHostProcess.ts index 9035333b54ffc..d8f7d90adf33d 100644 --- a/src/vs/workbench/node/extensionHostProcess.ts +++ b/src/vs/workbench/node/extensionHostProcess.ts @@ -114,6 +114,10 @@ function connectToRenderer(protocol: IMessagePassingProtocol): Promise { + onUnexpectedError(new Error('Unexpected SIGPIPE')); + }); + // Kill oneself if one's parent dies. Much drama. setInterval(function () { try {