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

Commit

Permalink
net: don't treat win32 Sockets differently
Browse files Browse the repository at this point in the history
Still needs a regression test.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
vkurchatkin authored and trevnorris committed Feb 10, 2015
1 parent 6ca89d8 commit 7ffc17a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ffc17a

Please sign in to comment.