Skip to content

Commit

Permalink
net: make stdout & stderr block on all platforms
Browse files Browse the repository at this point in the history
Fixes: nodejs#784
  • Loading branch information
Fishrock123 committed May 22, 2015
1 parent 2bb2f06 commit e62bc62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,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') {
// Make stdout and stderr blocking on Windows
(this._handle instanceof Pipe) {
var err = this._handle.setBlocking(true);
if (err)
throw errnoException(err, 'setBlocking');
Expand Down

0 comments on commit e62bc62

Please sign in to comment.