diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c index 8ed10c9f8e..869747e929 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c @@ -3955,9 +3955,12 @@ static int event_inotify_data_process(sd_event *e, InotifyData *d) { } } - /* Something pending now? If so, let's finish, otherwise let's read more. */ + /* Something pending now? If so, let's finish. */ if (d->n_pending > 0) return 1; + + /* otherwise, drop the event and let's read more */ + event_inotify_data_drop(e, d, sz); } return 0;