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

Viewing all changes in revision 748.

  • Committer: Scott James Remnant
  • Date: 2007-06-21 17:38:20 UTC
  • Revision ID: scott@netsplit.com-20070621173820-45cqbuufjbcft1sn
* init/tests/test_job.c (test_change_state): Include tests on a job's
start_on and stop_on event expression trees, and make sure that events
are unblocked and unreferenced at the appropriate moments.
* init/job.c (job_change_state): Unblock the events that started the
job in running (if a service), and reset when we reach waiting (leave
referenced otherwise so the environment is always present).
Unblock and unreference the events that stopped the job in
starting (for restarting), running (if coming from pre-stop) and
waiting.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: