-
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.