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

Issue 1570004: waitpid() on the child process when changing namespaces (Closed)

Created:
10 years, 8 months ago by Will Drewry
Modified:
9 years, 7 months ago
Reviewers:
Chris Masone, fes
CC:
chromium-os-reviews_chromium.org, Chris Masone
Visibility:
Public.

Description

waitpid() on the child process when changing namespaces This allows upstart to wait for the process as if it was the same one called. Otherwise, we lose the process id and upstart assumes everything is over. "expect fork" does not handle this properly. TEST=manual check: /sbin/minijail --namespace-vfs -- /bin/bash -c 'sleep 1' BUG=none

Patch Set 1 #

Patch Set 2 : propagate status; fix log msg #

Total comments: 2

Patch Set 3 : use waitpid status properly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M src/platform/minijail/env.cc View 1 2 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Will Drewry
10 years, 8 months ago (2010-03-30 22:41:30 UTC) #1
Chris Masone
http://codereview.chromium.org/1570004/diff/3001/4001 File src/platform/minijail/env.cc (right): http://codereview.chromium.org/1570004/diff/3001/4001#newcode213 src/platform/minijail/env.cc:213: _exit(WEXITSTATUS(status)); I believe that, if the process dies as ...
10 years, 8 months ago (2010-03-31 03:51:20 UTC) #2
Chris Masone
LGTM
10 years, 8 months ago (2010-04-01 00:44:46 UTC) #3
Will Drewry
New version is up that propagates the signal # and/or the exit code. All else ...
10 years, 8 months ago (2010-04-01 14:34:51 UTC) #4
Will Drewry
10 years, 8 months ago (2010-04-01 14:35:18 UTC) #5
On 2010/04/01 00:44:46, cmasone wrote:
> LGTM


Missed that you saw the fix already - thanks!

Powered by Google App Engine
This is Rietveld 408576698