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

Unified Diff: runtime/bin/process_patch.dart

Issue 2761673002: [dart:io][windows] Use WriteFile instead of _write (Closed)
Patch Set: Correctly calculate the number of bytes consumed Created 3 years, 9 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/process_patch.dart
diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart
index de7aa9d036845e18f5f471a799da18dc1af1a05b..8920d3735d538c2607cfb08ecd00ef74ab931853 100644
--- a/runtime/bin/process_patch.dart
+++ b/runtime/bin/process_patch.dart
@@ -257,7 +257,7 @@ class _ProcessImpl extends _ProcessImplNativeWrapper implements Process {
if (mode != ProcessStartMode.DETACHED) {
// stdin going to process.
- _stdin = new _StdSocketSink(new _Socket._writePipe());
+ _stdin = new _StdSink(new _Socket._writePipe());
_stdin._sink._owner = this;
// stdout coming from process.
_stdout = new _StdStream(new _Socket._readPipe());
@@ -522,7 +522,7 @@ class _ProcessImpl extends _ProcessImplNativeWrapper implements Process {
List<String> _environment;
ProcessStartMode _mode;
// Private methods of Socket are used by _in, _out, and _err.
- _StdSocketSink _stdin;
+ _StdSink _stdin;
_StdStream _stdout;
_StdStream _stderr;
Socket _exitHandler;

Powered by Google App Engine
This is Rietveld 408576698