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

Viewing all changes in revision 17.

  • Committer: Scott James Remnant
  • Date: 2006-08-09 22:47:44 UTC
  • Revision ID: scott@netsplit.com-20060809224744-e939fd556ebdbac4
* init/job.c (job_next_state): State transition logic; this uses
our departure from the specification (the goal) so that the state
can always be currently accurate rather than suggestive.
(job_state_name): Cute function to convert enum into a name.
* init/job.h: Update.
* init/tests/test_job.c (test_next_state): Test the transitions.
(test_state_name): And the return values.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: