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

Viewing all changes in revision 712.

  • Committer: Scott James Remnant
  • Date: 2007-06-10 19:55:41 UTC
  • Revision ID: scott@netsplit.com-20070610195541-9cvqk0kewzoatjfx
* init/conf.c (conf_item_free): Fix this up; when deleting an item
from a source, we first mark it for deletion unless it's already
marked for replacement.  Then if it's the replacement for something
else, we mark that to be replaced by whatever we're being replaced
by (so there are no references to us) and change that state if
necessary.  Finally we replace our own item and free the record
before returning.
* init/tests/test_conf.c (test_source_reload): Check that we handle
the cases of modiciation of a running job, modification of a
replacement of a running job and deletion of a replacement for a
running job.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: