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:
Anatoli Papirovski authored and Jon Moss committed 2018-01-26 16:36:02 -05:00
1 parent 09ef021bf4
commit d8c0f2d780
1 file changed
+1 -8
+1 -8
View File
@@ -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);
}
}