mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
76072a2dde
commit
9853842c53
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user