]> git.ipfire.org Git - thirdparty/plymouth.git/commit
[event-loop] Don't crash by running removed timeouts
authorRay Strode <rstrode@redhat.com>
Tue, 5 May 2009 15:57:21 +0000 (11:57 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 20 May 2009 21:00:27 +0000 (17:00 -0400)
commit79baa323e61b4c8a0e7bf75c773e78094ebf27fa
tree06fa2e842dee3ea176def761ba6f82de33d6a796
parentd5948e5a91f50041fc958174ba5b61a57b16d4db
[event-loop] Don't crash by running removed timeouts

We used to run and remove timeouts in a loop.  This
breaks the case where the dispatched timeout handler
removes the timeout itself.

We fix it by making timeout handling a two pass thing.
First we find which handlers need to be dispatched,
and move them to their own list.  Then we run through
the new list and dispatch the handlers.
src/libply/ply-event-loop.c