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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1035: Inside #if undefined(INHIBIT_INOTIFY_MONITOR)
   if (new_wd != -1) {    MON_WERR("Registered %O with %O ==> %d.\n", path, instance, new_wd);    out_of_inotify_space = 0;    // We shouldn't need to be polled.    if (!initial) {    MON_WERR("Unregistering from polling.\n");    release_monitor(this);    }    wd = new_wd;    monitors[inotify_cookie(wd)] = this; -  if (initial) { -  // NB: Inotify seems to not notify on preexisting paths, -  // so we need to strap it along. -  check(); +     } -  } +     }) {    if (!has_value(lower_case(describe_error(err)), "no space left")) {    master()->handle_error (err);    } else if (!(out_of_inotify_space++ % 100)) {    werror("Out of inotify space (%d attempts):\n", out_of_inotify_space);    master()->handle_error (err);    werror("Consider increasing '/proc/sys/fs/inotify/max_user_watches'.\n");    }    }    }