From a5b35db5d247104f9b3d993e95d3a9e0c6bdc0a7 Mon Sep 17 00:00:00 2001 From: Anatoli Papirovski Date: Tue, 23 Jan 2018 17:33:16 -0500 Subject: [PATCH] process: remove dead code PR-URL: https://github.com/nodejs/node/pull/18330 Reviewed-By: James M Snell Reviewed-By: Joyee Cheung Reviewed-By: Jon Moss --- lib/internal/process.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/internal/process.js b/lib/internal/process.js index e58b83d21631ff..71db75b91685ea 100644 --- a/lib/internal/process.js +++ b/lib/internal/process.js @@ -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); } }