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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:905:    System.Inotify.IN_CREATE);       MON_WERR("Registered %O with %O ==> %d.\n", path, instance, new_wd);    if (new_wd != -1) {    // We shouldn't need to be polled.    if (!initial) {    MON_WERR("Unregistering from polling.\n");    release_monitor(this);    }    wd = new_wd; +  if (initial) { +  // NB: Inotify seems to not notify on preexisting paths, +  // so we need to strap it along. +  check(); +  }    return;    }    };    MON_WERR("Registering %O for polling.\n", path);    ::register_path(initial);    }       protected void unregister_path(int|void dying)    {    MON_WERR("Unregistering %O...\n", path);