]> git.ipfire.org Git - thirdparty/plymouth.git/commit
main: Cleanly quit on SIGTERM
authorHans de Goede <hdegoede@redhat.com>
Tue, 30 Mar 2021 11:35:04 +0000 (13:35 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 6 Apr 2021 11:15:05 +0000 (13:15 +0200)
commiteb5227b47485183174f98807e15d224ecde25217
treeeb58a6eaab12d23a487feedfe2f40284ce53c74b
parent156ae7437efaf32825d92943577f24914cf56cec
main: Cleanly quit on SIGTERM

Now that we are no longer unconditionally opting out of getting terminated,
we get send a SIGTERM when transitioning from the rootfs back to the initrd
on poweroff/reboot.

Catch this SIGTERM and then exit cleanly by calling the on_quit handler,
besides exiting cleanly being the right thing to do, this will also allow the
boot-splash to go idle, so that it can cleanly finish the end-animation.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/main.c