Branch: Tag:

2016-03-18

2016-03-18 12:45:12 by 0

Reporting of deleted subdirectories failed for accelerated monitors since
adjust_monitor() for submonitors was a no-op. We now check them immediately.

620:    if (files) {    foreach(files, string file) {    file = canonic_path(Stdio.append_path(path, file)); -  if (monitors[file]) { +  if (Monitor submon = monitors[file]) {    // Adjust next_poll, so that the monitor will be checked soon. -  monitors[file]->next_poll = time(1)-1; -  adjust_monitor(monitors[file]); +  // Accelerated monitors will never get polled so check them +  // right away. +  if (submon->accellerated) { +  submon->check(flags); +  } else { +  submon->next_poll = time(1)-1; +  adjust_monitor(submon);    delay = 1;    }    }    } -  +  }    if (delay) {    // Delay the notification until the submonitors have notified.    this::st = old_st;