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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:945:    }       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) {    MON_WERR("### Unregistering from inotify.\n"); +  catch { +  // FIXME: For some reason Inotify often complains +  // when we call rm_watch() with what appears +  // to be correct descriptors (Linux 3.17.2).    instance->rm_watch(wd); -  +  };    }    wd = -1;    if (!dying) {    // We now need to be polled...    MON_WERR("Registering for polling.\n");    monitor_queue->push(this);    }    }    ::unregister_path(dying);    }