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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:852: Inside #if HAVE_EVENTSTREAM
   // only on its contents.    ::register_path(initial);    }       int(0..1) check(MonitorFlags|void flags)    {    MON_WERR("Checking path %O...\n", path);    int orig_flags = this::flags;       int(0..1) ret = ::check(flags); -  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 = 1;    }
pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1468:      //! Change backend.   //!   //! @param backend   //! Backend to use. @expr{0@} (zero) for the default backend.   void set_backend(Pike.Backend|void backend)   {    int was_nonblocking = !!co_id;    set_blocking();    this::backend = backend; - #if HAVE_INOTIFY + #if HAVE_EVENTSTREAM + #if 0 /* FIXME: The following does NOT work properly. */ +  if (eventstream && backend) { +  foreach(monitors; string path; Monitor m) { +  if (m->accellerated) { +  m->accellerated = 0; +  monitor_queue->push(m); +  } +  } +  } + #endif + #elif HAVE_INOTIFY    if (file) {    if (backend) {    file->set_backend(backend);    } else {    file->set_backend(Pike.DefaultBackend);    }    }   #endif    if (was_nonblocking) {    set_nonblocking();