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

Issue 3363006: [seccomp-sandbox] Fix test_prctl so that it does not leave behind a zombie process (Closed)

Created:
10 years, 3 months ago by Mark Seaborn
Modified:
9 years, 5 months ago
Reviewers:
Markus (顧孟勤)
CC:
chromium-reviews, Markus (顧孟勤), Mark Seaborn
Visibility:
Public.

Description

Fix test_prctl so that it does not leave behind a stopped process The stuck process means that running tests over ssh causes ssh to hang when the tests are finished, because ssh never gets EOF from stdout. The problem was apparently that PTRACE_KILL does not kill the subprocess unless you have cleared the wait status queue for the subprocess first. Committed: http://code.google.com/p/seccompsandbox/source/detail?r=102

Patch Set 1 #

Total comments: 2

Patch Set 2 : Go back to PTRACE_KILL, but with extra waitpid() call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M tests/test_syscalls.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mark Seaborn
10 years, 3 months ago (2010-09-03 16:48:24 UTC) #1
Markus (顧孟勤)
http://codereview.chromium.org/3363006/diff/1/2 File tests/test_syscalls.cc (right): http://codereview.chromium.org/3363006/diff/1/2#newcode710 tests/test_syscalls.cc:710: kill(pid, SIGKILL); I suspect that PTRACE_KILL would actually work. ...
10 years, 3 months ago (2010-09-03 16:57:32 UTC) #2
Mark Seaborn
On 3 September 2010 09:57, <markus@chromium.org> wrote: > http://codereview.chromium.org/3363006/diff/1/2 > File tests/test_syscalls.cc (right): > > ...
10 years, 3 months ago (2010-09-03 17:19:42 UTC) #3
Mark Seaborn
On 3 September 2010 19:40, Markus Gutschke <markus@chromium.org> wrote: > I think the way how ...
10 years, 3 months ago (2010-09-06 10:07:55 UTC) #4
Markus (顧孟勤)
10 years, 3 months ago (2010-09-06 15:37:47 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698