pike.git / lib / modules / Filesystem.pmod / Monitor.pmod / basic.pike

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:968: Inside #if undefined(INHIBIT_INOTIFY_MONITOR)
  #ifndef INHIBIT_INOTIFY_MONITOR    if (wd == -1) {    if (!instance) {    start_accelerator();    }       // NB: We need to follow symlinks here.    // Currently we only support changing symlinks and symlinks to directories.    // FIXME: Handle broken symlinks where the target later shows up and    // symlinks to changing files. -  Stdio.Stat st = file_stat(path); +  Stdio.Stat st = file_stat(path, 1);    mixed err;    if (st && (!(flags & MF_AUTO) || st->isdir)) {    // Note: We only want to add watchers on directories. File    // notifications will take place on the directory watch    // descriptors. Expansion of the path to cover notifications    // on individual files is handled in the inotify_event    // callback.       if (err = catch {    int new_wd = instance->add_watch(path,