Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
child_process: handle writeUtf8String error
Browse files Browse the repository at this point in the history
When handling `writeUtf8String` error, return after emitting it.
Otherwise a runtime failure can occur.

fix #7923
  • Loading branch information
indutny committed Jul 12, 2014
1 parent b87ca79 commit 7f86baf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
Expand Down

0 comments on commit 7f86baf

Please sign in to comment.