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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:872:    (backend || Pike.DefaultBackend)->    call_out(check, (stable_time || global::stable_time) + 1);    }    ::attr_changed(path, st);    }       protected void register_path(int|void initial)    {    if (wd != -1) return;    + #ifndef INHIBIT_INOTIFY_MONITOR    if (initial && !instance) {    MON_WERR("Creating Inotify monitor instance.\n");    instance = System.Inotify._Instance();    file = Stdio.File();    if (backend) file->set_backend(backend);    file->assign(instance->fd());    file->set_nonblocking();    file->set_read_callback(inotify_parse);    MON_WERR("File: %O\n", file);    }
pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:913:    }    wd = new_wd;    if (initial) {    // NB: Inotify seems to not notify on preexisting paths,    // so we need to strap it along.    check();    }    return;    }    }; + #endif /* !INHIBIT_INOTIFY_MONITOR */    MON_WERR("Registering %O for polling.\n", path);    ::register_path(initial);    }       protected void unregister_path(int|void dying)    {    MON_WERR("Unregistering %O...\n", path);    if (wd != -1) {    // NB: instance may be null if the main object has been destructed    // and we've been called via a destroy().