Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: runtime/bin/stdio.dart

Issue 10962012: Use native wrapper fields to store socket ids. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/stdio.dart
diff --git a/runtime/bin/stdio.dart b/runtime/bin/stdio.dart
index abd141c5bbcefa75f89c5c79e23c0cc33ae554a4..727c3754e780891713138b7a1a8188d74bd49d16 100644
--- a/runtime/bin/stdio.dart
+++ b/runtime/bin/stdio.dart
@@ -21,6 +21,7 @@ InputStream _getStdioInputStream() {
case _STDIO_HANDLE_TYPE_SOCKET:
Socket s = new _Socket._internalReadOnly();
_getStdioHandle(s, 0);
+ s._closed = false;
return s.inputStream;
case _STDIO_HANDLE_TYPE_FILE:
return new _FileInputStream.fromStdio(0);
@@ -38,6 +39,7 @@ OutputStream _getStdioOutputStream(int fd) {
case _STDIO_HANDLE_TYPE_SOCKET:
Socket s = new _Socket._internalWriteOnly();
_getStdioHandle(s, fd);
+ s._closed = false;
return s.outputStream;
case _STDIO_HANDLE_TYPE_FILE:
return new _FileOutputStream.fromStdio(fd);

Powered by Google App Engine
This is Rietveld 408576698