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

Commit 7ffc17a

Browse files
vkurchatkintrevnorris
authored andcommitted
net: don't treat win32 Sockets differently
Still needs a regression test. Signed-off-by: Trevor Norris <[email protected]>
1 parent 6ca89d8 commit 7ffc17a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/net.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ function Socket(options) {
155155
this._handle = createHandle(options.fd);
156156
this._handle.open(options.fd);
157157
if ((options.fd == 1 || options.fd == 2) &&
158-
(this._handle instanceof Pipe) &&
159-
process.platform === 'win32') {
158+
(this._handle instanceof Pipe)) {
160159
// Make stdout and stderr blocking on Windows
161160
var err = this._handle.setBlocking(true);
162161
if (err)

0 commit comments

Comments
 (0)