chiark / gitweb /
sd-event: when an event source fails, don't assume the type of it is still set
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Dec 2016 22:26:15 +0000 (23:26 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
commit8d6bc051881bde26218ab00014ea6bd0532280b2
tree266617980c63b68094339de40e82ca1b5dacf22e
parentce18349eedcec2ed6074c89e5ce9e7bee0770ec0
sd-event: when an event source fails, don't assume the type of it is still set

If a callback of an event source returns an error, then the event source
might already be half-destroyed, if the callback dropped all refs.
Hence, don't assume that the type is still valid, and save it before we
issue the callback.
src/libelogind/sd-event/sd-event.c