From 7f86baf5c7713b6bd541b549352795fe8a55b9de Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Sat, 12 Jul 2014 12:35:26 +0300 Subject: [PATCH] child_process: handle writeUtf8String error When handling `writeUtf8String` error, return after emitting it. Otherwise a runtime failure can occur. fix #7923 --- lib/child_process.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/child_process.js b/lib/child_process.js index a07f2d1a42..e19f4ff89d 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -466,6 +466,7 @@ function setupChannel(target, channel) { 'write', 'cannot write to IPC channel.'); this.emit('error', er); + return; } else if (handle && !this._handleQueue) { this._handleQueue = []; }