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

Viewing all changes in revision 864.

  • Committer: Scott James Remnant
  • Date: 2008-03-03 00:28:51 UTC
  • Revision ID: scott@netsplit.com-20080303002851-s6ccdpb65x0gx5no
* init/job.c (job_handle_event): Collect the stop events and store
them in the blocking list, unblocking any that were there before
such as the start events.
(job_change_state): Unblock blocking events when returning to running
from pre-stop.
* init/tests/test_job.c (test_handle_event): Make sure the stop
events are collected and replace any previously blocking events.
(test_change_state, test_child_handler): Test that stop events in
the blocking list are kept and unblocked when necessary.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: