]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-event/sd-event.c
sd-event: add helper for exiting event loop on SIGTERM/SIGINT
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Sep 2022 09:42:05 +0000 (11:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Sep 2022 12:18:43 +0000 (14:18 +0200)
commitbaf3fdec27f0b3a1f3d39c7def2a778824cbee51
treef16f0dc257b7d71e868827732391523dbc142175
parent897448bd3753eab2c7b411221cfc33b283ae67a5
sd-event: add helper for exiting event loop on SIGTERM/SIGINT

In many (most?) of our event loops we want to exit once SIGTERM/SIGINT
is seen. Add a common helper for that, that does the right things in a
single call.
man/rules/meson.build
man/sd_event_set_signal_exit.xml [new file with mode: 0644]
src/libsystemd/libsystemd.sym
src/libsystemd/sd-event/sd-event.c
src/systemd/sd-event.h