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

Viewing all changes in revision 457.

  • Committer: Scott James Remnant
  • Date: 2007-02-07 00:23:57 UTC
  • Revision ID: scott@netsplit.com-20070207002357-9rh9pq8kgnh7rzru
* init/job.c (job_failed_event): Function to turn an event into one
that includes all the necessary arguments and environment.
(job_change_state): Call job_failed_event for the stop and stopped
events (bit hacky at the moment, will improve later).
* init/tests/test_job.c (test_change_state): Check that the failed
events are generated properly.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: