Browse Source

child_process: handle writeUtf8String error

When handling `writeUtf8String` error, return after emitting it.
Otherwise a runtime failure can occur.

fix #7923
v0.10.30-release
Fedor Indutny 11 years ago
parent
commit
7f86baf5c7
  1. 1
      lib/child_process.js

1
lib/child_process.js

@ -466,6 +466,7 @@ function setupChannel(target, channel) {
'write', 'write',
'cannot write to IPC channel.'); 'cannot write to IPC channel.');
this.emit('error', er); this.emit('error', er);
return;
} else if (handle && !this._handleQueue) { } else if (handle && !this._handleQueue) {
this._handleQueue = []; this._handleQueue = [];
} }

Loading…
Cancel
Save