mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
process: remove dead code
PR-URL: https://github.com/nodejs/node/pull/18330 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
This commit is contained in:
1 parent
09ef021bf4
commit
d8c0f2d780
1 file changed
+1
-8
@@ -227,14 +227,7 @@ function setupChannel() {
|
||||
// Make sure it's not accidentally inherited by child processes.
|
||||
delete process.env.NODE_CHANNEL_FD;
|
||||
|
||||
const cp = require('child_process');
|
||||
|
||||
// Load tcp_wrap to avoid situation where we might immediately receive
|
||||
// a message.
|
||||
// FIXME is this really necessary?
|
||||
process.binding('tcp_wrap');
|
||||
|
||||
cp._forkChild(fd);
|
||||
require('child_process')._forkChild(fd);
|
||||
assert(process.send);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user