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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:798: Inside #if HAVE_EVENTSTREAM
   ::attr_changed(path, st);    }       protected void register_path(int|void initial)    {    if (backend) {    // CFRunLoop only works with the primary backend.    ::register_path(initial);    return;    } + #ifndef INHIBIT_EVENTSTREAM_MONITOR    if (!initial) return;       if (!eventstream) {    // Make sure that the main backend is in CF-mode.    Pike.DefaultBackend.enable_core_foundation(1);       MON_WERR("Creating event stream.\n");    eventstream =    System.FSEvents.EventStream(({}), 3.0,    System.FSEvents.kFSEventStreamEventIdSinceNow,
pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:839: Inside #if HAVE_EVENTSTREAM
   return;    }    }       MON_WERR("Adding %O to the set of monitored paths.\n", path);    eventstream_paths += ({path});    if(eventstream->is_started())    eventstream->stop();    eventstream->add_path(path);    eventstream->start(); + #endif /* !INHIBIT_EVENTSTREAM_MONITOR */    // NB: Eventstream doesn't notify on the monitored path;    // 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;