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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:770: Inside #if HAVE_EVENTSTREAM
   if (ret) return ret;       if(orig_flags & MF_RECURSE) {    // If using FSEvents, we won't receive the name of the file changed,    // so we have to scan for it.    array(string) files = get_dir(path) || ({});    this::files = files;    foreach(files, string file) {    file = canonic_path(Stdio.append_path(path, file));    if (monitors[file]) { -  if(check_monitor(monitors[file])) ret++; +  if(check_monitor(monitors[file])) ret = 1;    }    }    }    return ret;    }   }      #elseif HAVE_INOTIFY      protected System.Inotify._Instance instance;