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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:807: Inside #if HAVE_EVENTSTREAM and #if undefined(INHIBIT_EVENTSTREAM_MONITOR)
   }   #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.EventStream(({}), 1.0,    System.FSEvents.kFSEventStreamEventIdSinceNow,    System.FSEvents.kFSEventStreamCreateFlagNone);    eventstream->callback_func = eventstream_callback;    } else {    string found;    foreach(eventstream_paths;;string p) {    if (path == p) {    // Unlikely, but...    // NB: Eventstream doesn't notify on the monitored path;    // only on its contents.