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

Viewing all changes in revision 581.

  • Committer: Scott James Remnant
  • Date: 2007-02-11 18:20:19 UTC
  • Revision ID: scott@netsplit.com-20070211182019-tbmrz1056ief322g
* init/job.c (job_change_goal): We need to be able to stop a running
job without a process, because that's what a job-as-state is!  The
check was added because job_child_reaper calls job_change_goal and
then job_change_state immediately after, we should fix that instead.
(job_child_reaper): If we call job_change_goal while in the running
state, it will call job_change_state for us; so check for that first
and don't change the state!
* init/tests/test_job.c (test_change_goal): Update the test to ensure
that we can stop a job with no running process.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: