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

Commit

Permalink
Browse files Browse the repository at this point in the history
child_process.fork: don't overwrite env
thanks to Malte-Thorben Bruns for pointing this out
  • Loading branch information
ry committed Oct 10, 2011
1 parent ca4a0fc commit 8c738fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/child_process_uv.js
Expand Up @@ -140,7 +140,8 @@ exports.fork = function(modulePath, args, options) {

// Just need to set this - child process won't actually use the fd.
// For backwards compat - this can be changed to 'NODE_CHANNEL' before v0.6.
options.env = { NODE_CHANNEL_FD: 42 };
if (!options.env) options.env = { };
options.env.NODE_CHANNEL_FD = 42;

// stdin is the IPC channel.
options.stdinStream = createPipe(true);
Expand Down

0 comments on commit 8c738fa

Please sign in to comment.