From 7ffc17afc94ca6e058244b1440ac98173d9f55b0 Mon Sep 17 00:00:00 2001 From: Vladimir Kurchatkin Date: Tue, 10 Feb 2015 13:13:15 -0700 Subject: [PATCH] net: don't treat win32 Sockets differently Still needs a regression test. Signed-off-by: Trevor Norris --- lib/net.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/net.js b/lib/net.js index d353ff70b04..0810cca3d64 100644 --- a/lib/net.js +++ b/lib/net.js @@ -155,8 +155,7 @@ function Socket(options) { this._handle = createHandle(options.fd); this._handle.open(options.fd); if ((options.fd == 1 || options.fd == 2) && - (this._handle instanceof Pipe) && - process.platform === 'win32') { + (this._handle instanceof Pipe)) { // Make stdout and stderr blocking on Windows var err = this._handle.setBlocking(true); if (err)