There's an issue on some `OS X` versions when passing fd's between processes. When the handle associated to a specific file descriptor is closed by the sender process before it's received in the destination, the handle is indeed closed while it should remain opened. In order to fix this behaviour, don't close the handle until the `NODE_HANDLE_ACK` is received by the sender. Added `test-child-process-pass-fd` that is basically `test-cluster-net-send` but creating lots of workers, so the issue reproduces on `OS X` consistently. Fixes: https://github.com/nodejs/node/issues/7512 Ref: https://github.com/nodejs/node/pull/8904 PR-URL: https://github.com/nodejs/node/pull/7572 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> |
||
|---|---|---|
| .. | ||
| streams | ||
| child_process.js | ||
| cluster.js | ||
| freelist.js | ||
| module.js | ||
| net.js | ||
| readme.md | ||
| repl.js | ||
| socket_list.js | ||
| util.js | ||
| v8_prof_polyfill.js | ||
| v8_prof_processor.js | ||
Internal Modules
The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules.
These are subject to change at any time. Reliance on these modules outside of core is not supported in any way.