~vorlon/ubuntu/raring/upstart/lp.1199778

Viewing all changes in revision 1182.1.6.

* init/tests/test_job_process.c (test_handler): Rework the existing
ptrace fork handler test case to make sure we test the case where
we get the fork event before the stopped child.  Add a second test
case for the opposite (stopped child before the fork event) which
we don't currently handle.
* init/job_process.c (job_process_trace_fork): Test for the missed
child event using ptrace(), if it succeeds the child is ready so
we can just assume we had the event.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: