HomeClusterLabs Projects
Diffusion LibQB fde729e137c9

timer: Move state check to before time check (#479)

Description

timer: Move state check to before time check (#479)

A timer in QB_POLL_ENTRY_JOBLIST doesn't necessarily
have a t->timerlist_handle so that deref can segv. Also
the comment assumes the timers are threaded - which as we have
decided is definitely not true. So it's safe to move the check
earlier.

In the tests, I've adjusted the timeouts so that they definitely
happen at different times. On some architectures they can fire
concurrently and in the wrong order.

Details

Provenance
chrissie-cAuthored on Jan 5 2023, 9:45 AM
GitHub <noreply@github.com>Committed on Jan 5 2023, 9:45 AM
Parents
rQ5594d377ac73: ipc: Retry receiving credentials if the the message is short (#476)
Branches
Unknown
Tags
Unknown