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

Viewing all changes in revision 542.

  • Committer: Scott James Remnant
  • Date: 2007-02-09 13:26:09 UTC
  • Revision ID: scott@netsplit.com-20070209132609-9n7pe4rvqev1hg8p
* init/job.c (job_handle_event_finished): Function to unblock all
jobs blocked on a given event emission.
(job_new, job_emit_event): Rename blocker to blocked; it's useful for
testing for truth.
* init/job.h: Add prototype, rename member.
* init/tests/test_job.c (test_handle_event_finished): Test it.
(test_new, test_change_state): Update name here too.
* init/event.c (event_finished): Call job_handle_event_finished
function to unblock jobs.
* init/tests/test_event.c (test_poll): Make sure the job gets
unblocked; a few other tests have to change since running event_poll
always unblocks the job if nothing listens to it.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: