mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
Defer and exit event sources are marked pending once when they are added and never again afterwards. This means their pending_iteration is never incremented after they are initially added, which breaks fairness among event sources with equal priority which depend on the pending_iteration variable getting updated in source_set_pending(). To fix this, let's assign iterations for defer and exit sources in source_dispatch() instead so that those get their pending_iteration updated as well.