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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:532:    //! half of the remaining interval.    void bump(MonitorFlags|void flags, int|void seconds)    {    int now = time(1);    if (seconds)    next_poll = now + seconds;    else if (next_poll > now)    next_poll -= (next_poll - now) / 2;    adjust_monitor(this);    -  if ((flags & MF_RECURSE) && st->isdir && files) { +  if ((flags & MF_RECURSE) && st && st->isdir && files) {    // Bump the files in the directory as well.    foreach(files, string file) {    file = canonic_path(Stdio.append_path(path, file));    Monitor m2 = monitors[file];    if (m2) {    m2->bump(flags, seconds);    }    }    }    }