Branch: Tag:

2018-02-07

2018-02-07 16:28:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor: Reschedule backend_check after register_path.

If the newly registered monitor ends up at the head of the monitor_queue,
the backend_check() call_out likely needs to be rescheduled.

Fixes PIKE-65 (#8065).

290:    MON_WERR("Registering %O for polling.\n", path);    mixed key = monitor_mutex->lock();    monitor_queue->push(this); +  if (monitor_queue->peek() == this) { +  if (co_id) { +  reschedule_backend_check();    }    } -  +  } +  }       //! Unregister the @[Monitor] from the monitoring system.    //!