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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1012: Inside #if undefined(INHIBIT_INOTIFY_MONITOR)
   werror("%O: Out of inotify space (%d attempts):\n",    this_function, out_of_inotify_space);    master()->handle_error(err);    werror("Consider increasing '/proc/sys/fs/inotify/max_user_watches'.\n");    }    }    }    }      #endif /* !INHIBIT_INOTIFY_MONITOR */ -  MON_WERR("Registering %O for polling.\n", path); +     ::register_path(initial);    }       protected void unregister_path(int|void dying)    { -  MON_WERR("Unregistering %O...\n", path); +     if (wd != -1) {    // NB: instance may be null if the main object has been destructed    // and we've been called via a destroy().    if (instance && dying) {    MON_WERR("### Unregistering from inotify.\n");    // NB: Inotify automatically removes watches for deleted files,    // and will complain if we attempt to remove them too.    //    // Since we have no idea if there's already a queued ID_IGNORED    // pending we just throw away any error here.    mixed err = catch {    instance->rm_watch(wd);    };    if (err) { -  MON_WERR("### Failed: %s\n", describe_backtrace(err)); +  MON_WERR("### Failed to unregister %O: %s\n", +  path, describe_backtrace(err));    }    }    wd = -1;    }    ::unregister_path(dying);    }   }      constant DefaultMonitor = InotifyMonitor;