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

Issue 635113002: [NaCl SDK] nacl_io: Fix real_node when dealing with a windows terminal (Closed)

Created:
6 years, 2 months ago by Sam Clegg
Modified:
6 years, 2 months ago
Reviewers:
binji
CC:
chromium-reviews, binji+watch_chromium.org, Sam Clegg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[NaCl SDK] nacl_io: Fix real_node when dealing with a windows terminal This fixes stat, read and write methods when dealing with windows tty file descriptors. We were not catching this is our tests because we run with stdout/stderr that are not ttys. Also, fail early and hard during nacl_io_init and ps_main if anything goes wrong setting things up. Committed: https://crrev.com/f08c3c1df1c2eed13054d6e6d1ad54e50e2919b1 Cr-Commit-Position: refs/heads/master@{#299005}

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -30 lines) Patch
M native_client_sdk/src/libraries/nacl_io/dir_node.cc View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/getdents_helper.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 2 3 5 chunks +22 lines, -15 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/passthroughfs/real_node.cc View 1 2 4 chunks +31 lines, -11 lines 0 comments Download
M native_client_sdk/src/libraries/ppapi_simple/ps_main.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Sam Clegg
6 years, 2 months ago (2014-10-08 01:11:14 UTC) #2
binji
lgtm https://codereview.chromium.org/635113002/diff/20001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/635113002/diff/20001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode109 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc:109: LOG_ERROR("failed to /dev/stdin: %s", strerror(errno)); failed to open ...
6 years, 2 months ago (2014-10-08 01:26:14 UTC) #3
Sam Clegg
https://codereview.chromium.org/635113002/diff/20001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc File native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc (right): https://codereview.chromium.org/635113002/diff/20001/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc#newcode109 native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc:109: LOG_ERROR("failed to /dev/stdin: %s", strerror(errno)); On 2014/10/08 01:26:13, binji ...
6 years, 2 months ago (2014-10-08 02:01:02 UTC) #4
binji
https://codereview.chromium.org/635113002/diff/20001/native_client_sdk/src/libraries/nacl_io/passthroughfs/real_node.cc File native_client_sdk/src/libraries/nacl_io/passthroughfs/real_node.cc (right): https://codereview.chromium.org/635113002/diff/20001/native_client_sdk/src/libraries/nacl_io/passthroughfs/real_node.cc#newcode107 native_client_sdk/src/libraries/nacl_io/passthroughfs/real_node.cc:107: if (S_ISCHR(stat->st_mode) && (stat->st_mode & S_IRWXU) == 0) On ...
6 years, 2 months ago (2014-10-08 18:22:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/635113002/60001
6 years, 2 months ago (2014-10-09 22:30:04 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 2 months ago (2014-10-09 23:12:09 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 23:13:41 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f08c3c1df1c2eed13054d6e6d1ad54e50e2919b1
Cr-Commit-Position: refs/heads/master@{#299005}

Powered by Google App Engine
This is Rietveld 408576698