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

Issue 12476021: Handle /dev/null on linux, as an closed device. (Closed)

Created:
7 years, 9 months ago by Anders Johnsen
Modified:
7 years, 6 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Handle /dev/null on linux, as an closed device. This will make all devices unsupported by epoll act as an empty source. BUG= Committed: https://code.google.com/p/dart/source/detail?r=19796

Patch Set 1 #

Patch Set 2 : Add support for reading /dev/null on mac. #

Patch Set 3 : Apply same fix for mac #

Total comments: 2

Patch Set 4 : Remove debug print. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -17 lines) Patch
M runtime/bin/eventhandler_linux.cc View 1 chunk +8 lines, -1 line 0 comments Download
M runtime/bin/eventhandler_macos.cc View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M runtime/bin/file_linux.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/file_macos.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M tests/standalone/io/dart_std_io_pipe_test.dart View 3 chunks +30 lines, -13 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
7 years, 9 months ago (2013-03-11 14:33:39 UTC) #1
Søren Gjesse
lgtm - passes all standalone tests on Mac OS https://codereview.chromium.org/12476021/diff/5001/runtime/bin/file_linux.cc File runtime/bin/file_linux.cc (right): https://codereview.chromium.org/12476021/diff/5001/runtime/bin/file_linux.cc#newcode126 runtime/bin/file_linux.cc:126: ...
7 years, 9 months ago (2013-03-11 15:08:16 UTC) #2
Anders Johnsen
Committed patchset #4 manually as r19796 (presubmit successful).
7 years, 9 months ago (2013-03-11 15:16:17 UTC) #3
Anders Johnsen
7 years, 6 months ago (2013-06-11 12:14:41 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/12476021/diff/5001/runtime/bin/file_linux.cc
File runtime/bin/file_linux.cc (right):

https://codereview.chromium.org/12476021/diff/5001/runtime/bin/file_linux.cc#...
runtime/bin/file_linux.cc:126: printf("Open failed\n");
On 2013/03/11 15:08:16, Søren Gjesse wrote:
> Debug print.

Done.

Powered by Google App Engine
This is Rietveld 408576698