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

Viewing all changes in revision 526.

  • Committer: Scott James Remnant
  • Date: 2007-02-09 03:39:00 UTC
  • Revision ID: scott@netsplit.com-20070209033900-avvv1gpf066k9rps
* init/job.c (job_next_state): Encapsulate the slightly odd three
exit states of running in this function, otherwise we'll end up
special-casing it in places I'd rather not think about.
(job_change_goal): Only change the state of a running job if it
has a process.
* init/tests/test_job.c (test_next_state): Add a test case for the
dead running job
(test_change_goal): Add test case for the dead running job

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: