From 02699a3a8e984caf740f991ed56cdb9278034acc Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 20 Jun 2011 15:51:03 +0200 Subject: [PATCH] net_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var --- lib/child_process.js | 2 +- src/node.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index 5f983c9d74..edcbaa0a73 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -21,7 +21,7 @@ var util = require('util'); var EventEmitter = require('events').EventEmitter; -var Stream = require('net').Stream; +var Stream = require('net_legacy').Stream; // FIXME var InternalChildProcess = process.binding('child_process').ChildProcess; var constants; diff --git a/src/node.js b/src/node.js index 1ab424473f..2f7c4b9a63 100644 --- a/src/node.js +++ b/src/node.js @@ -375,7 +375,7 @@ // backend. function translateId(id) { if (id == 'net') { - return process.useUV ? 'net_uv' : 'net_legacy'; + return process.useUV || process.env.NODE_USE_UV ? 'net_uv' : 'net_legacy'; } else { return id; }