summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2014-07-12 12:35:26 +0300
committerFedor Indutny <fedor@indutny.com>2014-07-12 12:35:26 +0300
commit7f86baf5c7713b6bd541b549352795fe8a55b9de (patch)
tree5753f3b4ab479ccdb93c5bf0b5f432f13f643497 /lib
parentb87ca794e31096b61ead46911baf92ba1c020a7d (diff)
downloadandroid-node-v8-7f86baf5c7713b6bd541b549352795fe8a55b9de.tar.gz
android-node-v8-7f86baf5c7713b6bd541b549352795fe8a55b9de.tar.bz2
android-node-v8-7f86baf5c7713b6bd541b549352795fe8a55b9de.zip
child_process: handle writeUtf8String error
When handling `writeUtf8String` error, return after emitting it. Otherwise a runtime failure can occur. fix #7923
Diffstat (limited to 'lib')
-rw-r--r--lib/child_process.js1
1 files changed, 1 insertions, 0 deletions
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 = [];
}