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

Viewing all changes in revision 383.

  • Committer: Scott James Remnant
  • Date: 2007-02-01 16:51:28 UTC
  • Revision ID: scott@netsplit.com-20070201165128-n5vcucr1wa4o9bey
* init/cfgfile.c (cfg_watch_dir): Port to the new NihWatch API and
use nih_dir_walk().  This also fixes the long-standing bug where we
wouldn't watch the configuration directory if inotify was disabled.
Drop both the parent and prefix members for now, until we clean this
up later.
(cfg_create_modify_handler): Wrap cfg_read_job after figuring out
the job name.
(cfg_job_name): Function to figure out the job name from a path.
(cfg_visitor): Visitor function to handle initial parsing, figuring
out the job name; otherwise identical to the standard handler.
* init/cfgfile.h: Update prototype for cfg_watch_dir.
* init/main.c (main): Update call to cfg_watch_dir.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: