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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:482:    };    if (this::flags & MF_RECURSE) {    monitor(file, orig_flags | MF_AUTO | MF_HARD,    max_dir_check_interval,    file_interval_factor,    stable_time);    monitors[file]->check();    } else if (!m2) {    file_created(file, file_stat(file, 1));    } +  if (err) { +  master()->handle_error(err);    } -  +  }    foreach(deleted_files, string file) {    res = 1;    file = canonic_path(Stdio.append_path(path, file));    if(filter_file(file)) continue;    Monitor m2 = monitors[file];    mixed err = catch {    if (m2) {    // We have a separate monitor on the deleted file.    // Let it handle the notification.    m2->check(flags);
pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:934:    MON_WERR("### Monitor watch descriptor %d is no more.\n", wd);    m_delete(monitors, icookie);    }    mixed err = catch {    if (event & System.Inotify.IN_CLOSE_WRITE)    // File marked as stable immediately.    m->last_change = -0x7fffffff;    m->check(0);    };    if (err) { -  master()->handler_error(err); +  master()->handle_error(err);    }    } else {    MON_WERR("No monitor found for path %O.\n", path);    }   }      //! Inotify-accellerated @[Monitor].   protected class InotifyMonitor   {    inherit Monitor;