Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Remove unused variable.
Browse files Browse the repository at this point in the history
The file descriptor arg to child_process._forkChild() is not used any more.
Remove it, avoids future confusion.
  • Loading branch information
bnoordhuis committed Dec 6, 2011
1 parent 57d2857 commit 23bb598
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/node.js
Expand Up @@ -416,16 +416,15 @@
// If we were spawned with env NODE_CHANNEL_FD then load that up and
// start parsing data from that stream.
if (process.env.NODE_CHANNEL_FD) {
var fd = parseInt(process.env.NODE_CHANNEL_FD);
assert(fd >= 0);
assert(parseInt(process.env.NODE_CHANNEL_FD) >= 0);
var cp = NativeModule.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);
cp._forkChild();
assert(process.send);
}
}
Expand Down

0 comments on commit 23bb598

Please sign in to comment.