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

Issue 928963003: sandbox: use waitpid consistently (Closed)

Created:
5 years, 10 months ago by mdempsky
Modified:
5 years, 10 months ago
CC:
chromium-reviews, rickyz+watch_chromium.org, jln+watch_chromium.org, hidehiko
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

sandbox: use waitpid consistently The BMM PNaCl toolchain doesn't currently support waitid. Arguably it should because it's in POSIX, but the userland/Linux signal ABI mismatch makes it non-trivial because of the siginfo_t. Since we don't need the siginfo_t anyway, we can just use waitpid instead. While here, use WIFEXITED and WEXITSTATUS for interpreting status instead of directly comparing it to the expected exit code. Committed: https://crrev.com/b71febc45698e4cae48c92c7a99d235da41adb55 Cr-Commit-Position: refs/heads/master@{#317080}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Respond to jln feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M sandbox/linux/services/credentials.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
mdempsky
5 years, 10 months ago (2015-02-19 01:46:18 UTC) #2
rickyz (no longer on Chrome)
lgtm
5 years, 10 months ago (2015-02-19 01:47:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928963003/1
5 years, 10 months ago (2015-02-19 02:09:38 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 10 months ago (2015-02-19 02:09:40 UTC) #7
jln (very slow on Chromium)
lgtm https://codereview.chromium.org/928963003/diff/1/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/928963003/diff/1/sandbox/linux/services/credentials.cc#newcode117 sandbox/linux/services/credentials.cc:117: return WIFEXITED(status) && WEXITSTATUS(status) == kExitSuccess; ugh, thanks ...
5 years, 10 months ago (2015-02-19 03:59:59 UTC) #8
mdempsky
https://codereview.chromium.org/928963003/diff/1/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/928963003/diff/1/sandbox/linux/services/credentials.cc#newcode184 sandbox/linux/services/credentials.cc:184: CHECK_EQ(0, WEXITSTATUS(status)); On 2015/02/19 03:59:59, jln wrote: > Since ...
5 years, 10 months ago (2015-02-19 04:02:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928963003/20001
5 years, 10 months ago (2015-02-19 04:03:53 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/34243)
5 years, 10 months ago (2015-02-19 05:23:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928963003/20001
5 years, 10 months ago (2015-02-19 05:25:12 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/34271)
5 years, 10 months ago (2015-02-19 06:29:35 UTC) #18
mdempsky
On 2015/02/19 06:29:35, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-02-19 06:34:59 UTC) #19
jln (very slow on Chromium)
On 2015/02/19 06:34:59, mdempsky wrote: > On 2015/02/19 06:29:35, I haz the power (commit-bot) wrote: ...
5 years, 10 months ago (2015-02-19 18:07:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928963003/20001
5 years, 10 months ago (2015-02-19 18:08:54 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-19 18:38:05 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 18:38:40 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b71febc45698e4cae48c92c7a99d235da41adb55
Cr-Commit-Position: refs/heads/master@{#317080}

Powered by Google App Engine
This is Rietveld 408576698