inotify: Ignore IN_Q_OVERFLOW events

There’s not much we can do about them, and if they go unhandled, they
can propagate through to g_file_monitor_source_handle_event() and cause
assertion failures due to not mapping to a GFileMonitorEvent.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=776147
This commit is contained in:
Philip Withnall 2017-11-24 20:00:38 +00:00
parent 76072a2dde
commit 9853842c53

View File

@ -532,8 +532,9 @@ ip_event_callback (ik_event_t *event)
GList* dir_list = NULL;
GList *file_list = NULL;
/* We can ignore the IGNORED events */
if (event->mask & IN_IGNORED)
/* We can ignore the IGNORED events. Likewise, if the event queue overflowed,
* there is not much we can do to recover. */
if (event->mask & (IN_IGNORED | IN_Q_OVERFLOW))
{
_ik_event_free (event);
return TRUE;