From 23bb5986d4c97dde538622283864b3eed23493d8 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 6 Dec 2011 21:47:30 +0100 Subject: [PATCH] Remove unused variable. The file descriptor arg to child_process._forkChild() is not used any more. Remove it, avoids future confusion. --- src/node.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/node.js b/src/node.js index 5e7ae12061..15cccb68fa 100644 --- a/src/node.js +++ b/src/node.js @@ -416,8 +416,7 @@ // 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 @@ -425,7 +424,7 @@ // FIXME is this really necessary? process.binding('tcp_wrap') - cp._forkChild(fd); + cp._forkChild(); assert(process.send); } }