event: implement quit handlers
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Oct 2013 22:49:11 +0000 (00:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Oct 2013 22:49:11 +0000 (00:49 +0200)
commitda7e457c5b9339721454ae8401a03ffdd781e6a9
treee998c9a04fbb7155abde6019d8621648b77bb7fa
parent18387b5983150181dd9dee8edf1573285eecbaa4
event: implement quit handlers

Quit handlers are executed when an event loop is terminated via
sd_event_request_quit(). They are in a way atexit() handlers that are
executed in a well-defined environment, time and thread: from the event
loop thread when the event loop finishes.
src/libsystemd-bus/sd-event.c
src/libsystemd-bus/test-event.c
src/systemd/sd-event.h