Skip to content

Commit a5b35db

Browse files
apapirovskievanlucas
authored andcommitted
process: remove dead code
PR-URL: #18330 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Jon Moss <[email protected]>
1 parent deac028 commit a5b35db

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/internal/process.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,7 @@ function setupChannel() {
227227
// Make sure it's not accidentally inherited by child processes.
228228
delete process.env.NODE_CHANNEL_FD;
229229

230-
const cp = require('child_process');
231-
232-
// Load tcp_wrap to avoid situation where we might immediately receive
233-
// a message.
234-
// FIXME is this really necessary?
235-
process.binding('tcp_wrap');
236-
237-
cp._forkChild(fd);
230+
require('child_process')._forkChild(fd);
238231
assert(process.send);
239232
}
240233
}

0 commit comments

Comments
 (0)