Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
child_process: fix sending handle twice
When sending a socket to a child process via IPC pipe, `child_process.js` picks a raw UV handle from `_handle` property, sends it, and assigns `null` to the property. Sending the same socket twice was resulting in a runtime error, since we wasn't handling empty `_handle` case. In case of `null` `_handle` we should send just a plain text message as passed it was passed to `.send()` and ignore the handle, letting users handle such cases themselves instead of throwing the error at runtime. fix nodejs#5469
- Loading branch information