]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-event: change ordering of pending/ratelimited events 19811/head
authorLennart Poettering <lennart@poettering.net>
Tue, 8 Jun 2021 07:07:51 +0000 (00:07 -0700)
committerAnita Zhang <the.anitazha@gmail.com>
Thu, 10 Jun 2021 04:02:22 +0000 (21:02 -0700)
commit81107b8419c39f726fd2805517a5b9faab204e59
treef5f1ba1e87c7f4ed7f216672a4d5a5ce29ce5303
parent0c81900965a72b29eb76e0737ed899b925ee75b6
sd-event: change ordering of pending/ratelimited events

Instead of ordering non-pending before pending we should order
"non-pending OR ratelimited" before "pending AND not-ratelimited".
This fixes a bug where ratelimited events were ordered at the end of the
priority queue and could be stuck there for an indeterminate amount of
time.
src/libsystemd/sd-event/sd-event.c