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

Viewing all changes in revision 1136.

  • Committer: Scott James Remnant
  • Date: 2009-07-03 16:28:21 UTC
  • Revision ID: scott@netsplit.com-20090703162821-u240nk6bv2vw4g10
* dbus/com.ubuntu.Upstart.Job.xml (Start, Stop, Restart): Add wait
arguments to these too
* init/job_class.c (job_class_start, job_class_stop)
(job_class_restart): Add wait arguments, when TRUE the functions
behave as before; when FALSE the methods return after changing
the goal and no blocked entries are created.
* init/job_class.h: Amend prototypes.
* init/tests/test_job_class.c (test_start, test_stop, test_restart): 
Pass TRUE for wait and check for a blocking entry in existing tests,
add tests for passing FALSE and making sure that there's no blocking
but we still get the reply.
(test_get_name, test_get_description, test_get_author)
(test_get_version): Add missing code to free the class on enomem

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: