Skip to content

Commit e62bc62

Browse files
committed
net: make stdout & stderr block on all platforms
Fixes: #784
1 parent 2bb2f06 commit e62bc62

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/net.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ function Socket(options) {
125125
this._handle = createHandle(options.fd);
126126
this._handle.open(options.fd);
127127
if ((options.fd == 1 || options.fd == 2) &&
128-
(this._handle instanceof Pipe) &&
129-
process.platform === 'win32') {
130-
// Make stdout and stderr blocking on Windows
128+
(this._handle instanceof Pipe) {
131129
var err = this._handle.setBlocking(true);
132130
if (err)
133131
throw errnoException(err, 'setBlocking');

0 commit comments

Comments
 (0)