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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:773:   //! @param stable_time   //! Override of @[default_stable_time].   protected void create(int|void max_dir_check_interval,    int|void file_interval_factor,    int|void stable_time)   {   #if HAVE_EVENTSTREAM    eventstream->callback_func = eventstream_callback;   #elseif HAVE_INOTIFY    instance = Inotify._Instance(); -  file = Stdio.File(instance->get_fd(), "r"); +  file = Stdio.File(); +  file->assign(instance->fd());    file->set_nonblocking();    file->set_read_callback(inotify_parse);   #endif       if (max_dir_check_interval > 0) {    this_program::max_dir_check_interval = max_dir_check_interval;    }    if (file_interval_factor > 0) {    this_program::file_interval_factor = file_interval_factor;    }