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

Issue 2596543002: Fix Process.runSync error handling. (Closed)

Created:
4 years ago by zra
Modified:
4 years ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix Process.runSync error handling. Now, failing to allocate a buffer for stderr or stdout will generate an ENOMEM OSError exception. Also previously, read() returning an error would cause buffers for stderr and stdout to leak. After this change, they'll be reclaimed. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/2b482617640234f10a0a1531156c778819bac025

Patch Set 1 #

Patch Set 2 : Don't include signal_blocker.h on Windows #

Patch Set 3 : Fixes for Windows #

Total comments: 2

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -147 lines) Patch
M runtime/bin/process.h View 1 2 3 6 chunks +82 lines, -12 lines 0 comments Download
M runtime/bin/process_android.cc View 2 chunks +2 lines, -30 lines 0 comments Download
M runtime/bin/process_fuchsia.cc View 2 chunks +2 lines, -30 lines 0 comments Download
M runtime/bin/process_linux.cc View 2 chunks +2 lines, -30 lines 0 comments Download
M runtime/bin/process_macos.cc View 2 chunks +2 lines, -30 lines 0 comments Download
M runtime/bin/process_win.cc View 1 2 4 chunks +26 lines, -15 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
zra
4 years ago (2016-12-20 21:09:02 UTC) #2
siva
lgtm https://codereview.chromium.org/2596543002/diff/40001/runtime/bin/process.h File runtime/bin/process.h (right): https://codereview.chromium.org/2596543002/diff/40001/runtime/bin/process.h#newcode267 runtime/bin/process.h:267: if (!node->Valid()) { if ((node == NULL) || ...
4 years ago (2016-12-20 23:42:55 UTC) #3
zra
https://codereview.chromium.org/2596543002/diff/40001/runtime/bin/process.h File runtime/bin/process.h (right): https://codereview.chromium.org/2596543002/diff/40001/runtime/bin/process.h#newcode267 runtime/bin/process.h:267: if (!node->Valid()) { On 2016/12/20 23:42:55, siva wrote: > ...
4 years ago (2016-12-21 17:10:09 UTC) #4
zra
4 years ago (2016-12-21 17:10:46 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
2b482617640234f10a0a1531156c778819bac025 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698