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

Viewing all changes in revision 708.

  • Committer: Scott James Remnant
  • Date: 2007-06-10 15:49:13 UTC
  • Revision ID: scott@netsplit.com-20070610154913-uymy8eiihn2trg0l
* init/conf.c (conf_reload_path): It turns out that the flag trick
doesn't work for items since we often reparse them within the same
file tag (it works with files because they're atomic and reparsed).
Store the old items in a different list instead.
(conf_source_free): We need to be careful about freeing sources,
so have a function to do it properly.
(conf_item_new): Since the flag member isn't useful, don't bother
setting it.
* init/conf.h: Add conf_source_free prototype.
(ConfFile): Remove flag member.
* init/tests/test_conf.c (test_source_reload): Add test for inotify
create detection.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: