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

Viewing all changes in revision 37.

  • Committer: Scott James Remnant
  • Date: 2006-08-15 04:07:24 UTC
  • Revision ID: scott@netsplit.com-20060815040724-72c4425c396403d0
* init/job.c (job_start_event): Function to start a job if an event
matches.
(job_stop_event): Function to stop a job if an event matches.
(job_handle_event): Iterate the job list and dispatch the given event,
causing jobs to be stopped or started using the above two functions.
* init/job.h: Update.
* init/tests/test_job.c: Test the new functions.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: