Index: runtime/bin/socket_patch.dart |
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart |
index 56f04d16ac83f5e20daea12c422a37d3ca1feb92..d6ae4a78f4ca32830abdb0ff0ccd344a6ec887c9 100644 |
--- a/runtime/bin/socket_patch.dart |
+++ b/runtime/bin/socket_patch.dart |
@@ -964,10 +964,9 @@ class _RawSocket extends Stream<RawSocketEvent> |
); |
} |
- factory _RawSocket._writePipe(int fd) { |
+ factory _RawSocket._writePipe() { |
var native = new _NativeSocket.pipe(); |
native.isClosedRead = true; |
- if (fd != null) _getStdioHandle(native, fd); |
return new _RawSocket(native); |
} |
@@ -1233,8 +1232,8 @@ class _Socket extends Stream<List<int>> implements Socket { |
_raw.writeEventsEnabled = false; |
} |
- factory _Socket._writePipe([int fd]) { |
- return new _Socket(new _RawSocket._writePipe(fd)); |
+ factory _Socket._writePipe() { |
+ return new _Socket(new _RawSocket._writePipe()); |
} |
factory _Socket._readPipe([int fd]) { |