qemu-server/qmeventd
Stefan Reiter 4c500f1696 qmeventd: add last-ditch effort SIGKILL cleanup
'alarm' is used to schedule an additionaly cleanup round 5 seconds after
sending SIGTERM via terminate_client. This then sends SIGKILL via a
pidfd (if supported by the kernel) or directly via kill, making sure
that the QEMU process is *really* dead and won't be left behind in an
undetermined state.

This shouldn't be an issue under normal circumstances, but can help
avoid dead processes lying around if QEMU hangs after SIGTERM.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2020-11-05 11:22:47 +01:00
..
Makefile qmeventd: add handling for -no-shutdown QEMU instances 2020-11-05 11:22:47 +01:00
qmeventd.c qmeventd: add last-ditch effort SIGKILL cleanup 2020-11-05 11:22:47 +01:00
qmeventd.h qmeventd: add last-ditch effort SIGKILL cleanup 2020-11-05 11:22:47 +01:00
qmeventd.service move qmeventd to own directory 2019-09-24 18:57:54 +02:00