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

Viewing all changes in revision 588.

  • Committer: Scott James Remnant
  • Date: 2007-03-01 12:50:10 UTC
  • Revision ID: scott@netsplit.com-20070301125010-dfzfe7y78nuaaqnz
* init/notify.c (notify_job): Split out notification to processes
subscribed to the cause event into a new function
(notify_job_event): We can call this when we change cause.
* init/job.c (job_change_state): Notify anyone subscribed to the
job after we've changed the state, rather than before, otherwise
we won't know the new pids or anything.
(job_change_cause): Call notify_job_event before changing the cause
so that subscribers get a final status update.
* init/tests/test_notify.c (test_job_event): Check the new function.
* TODO: Update.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: