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

Issue 807833002: Revert "Make stdout/stderr async" (Closed)

Created:
6 years ago by Søren Gjesse
Modified:
5 years, 11 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Paul Berry
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Revert "Make stdout/stderr async" This makes writes to the stdout and stderr IOSinks in dart:io blocking again. To get the non-blocking behaviour the getter "nonBlocking" will return an IOSink with real non-blocking behaviour. Updated the class exposed for stderr to also support checking for whether it is connected to a terminal and checking the terminal size. R=ajohnsen@google.com, iposva@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=42909

Patch Set 1 #

Patch Set 2 : Remove console and fix some issues #

Total comments: 10

Patch Set 3 : Addressed review commetns #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -224 lines) Patch
M pkg/analysis_server/lib/src/server/stdio_server.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/io_natives.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/stdio.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M runtime/bin/stdio.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M runtime/bin/stdio_linux.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M runtime/bin/stdio_macos.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/stdio_patch.dart View 1 2 chunks +8 lines, -15 lines 0 comments Download
M runtime/bin/stdio_win.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/io_patch.dart View 1 2 1 chunk +3 lines, -3 lines 2 comments Download
D sdk/lib/io/console.dart View 1 1 chunk +0 lines, -97 lines 0 comments Download
M sdk/lib/io/io.dart View 1 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/io/iolib_sources.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/io/stdio.dart View 1 2 6 chunks +62 lines, -8 lines 0 comments Download
D tests/standalone/io/console_script.dart View 1 1 chunk +0 lines, -31 lines 0 comments Download
D tests/standalone/io/console_test.dart View 1 1 chunk +0 lines, -27 lines 0 comments Download
A tests/standalone/io/stdio_nonblocking_script.dart View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A + tests/standalone/io/stdio_nonblocking_test.dart View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
A + tests/standalone/io/stdout_stderr_non_blocking_test.dart View 1 2 chunks +5 lines, -5 lines 0 comments Download
A tests/standalone/io/stdout_stderr_terminal_test.dart View 1 1 chunk +23 lines, -0 lines 0 comments Download
D tests/standalone/io/stdout_test.dart View 1 1 chunk +0 lines, -22 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Søren Gjesse
6 years ago (2014-12-17 15:38:11 UTC) #2
Ivan Posva
I strongly oppose re-introducing this irregularity into the IO system. Also I do not understand ...
6 years ago (2014-12-18 08:09:32 UTC) #3
Søren Gjesse
On 2014/12/18 08:09:32, Ivan Posva wrote: > I strongly oppose re-introducing this irregularity into the ...
6 years ago (2014-12-19 13:55:22 UTC) #4
Søren Gjesse
Anders can you please take a look?
5 years, 11 months ago (2015-01-09 08:21:46 UTC) #6
Anders Johnsen
https://codereview.chromium.org/807833002/diff/20001/sdk/lib/io/stdio.dart File sdk/lib/io/stdio.dart (right): https://codereview.chromium.org/807833002/diff/20001/sdk/lib/io/stdio.dart#newcode157 sdk/lib/io/stdio.dart:157: * In some situations this blocking behavior is undesirable ...
5 years, 11 months ago (2015-01-09 12:35:11 UTC) #7
Søren Gjesse
PTAL https://codereview.chromium.org/807833002/diff/20001/sdk/lib/io/stdio.dart File sdk/lib/io/stdio.dart (right): https://codereview.chromium.org/807833002/diff/20001/sdk/lib/io/stdio.dart#newcode157 sdk/lib/io/stdio.dart:157: * In some situations this blocking behavior is ...
5 years, 11 months ago (2015-01-14 10:12:21 UTC) #8
Anders Johnsen
LGTM https://codereview.chromium.org/807833002/diff/40001/sdk/lib/_internal/compiler/js_lib/io_patch.dart File sdk/lib/_internal/compiler/js_lib/io_patch.dart (right): https://codereview.chromium.org/807833002/diff/40001/sdk/lib/_internal/compiler/js_lib/io_patch.dart#newcode188 sdk/lib/_internal/compiler/js_lib/io_patch.dart:188: static _lock(int id, int lock, int start, int ...
5 years, 11 months ago (2015-01-14 13:56:59 UTC) #9
Søren Gjesse
https://codereview.chromium.org/807833002/diff/40001/sdk/lib/_internal/compiler/js_lib/io_patch.dart File sdk/lib/_internal/compiler/js_lib/io_patch.dart (right): https://codereview.chromium.org/807833002/diff/40001/sdk/lib/_internal/compiler/js_lib/io_patch.dart#newcode188 sdk/lib/_internal/compiler/js_lib/io_patch.dart:188: static _lock(int id, int lock, int start, int end) ...
5 years, 11 months ago (2015-01-15 14:15:20 UTC) #10
Søren Gjesse
5 years, 11 months ago (2015-01-15 14:18:32 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 42909 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698