]> git.proxmox.com Git - qemu-server.git/commit
qmeventd: explicitly close() pidfds
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 9 Feb 2021 15:24:07 +0000 (16:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Feb 2021 13:06:40 +0000 (14:06 +0100)
commit0a279963b615829df57f6f026104c44b06eba212
tree0dd69a701a8ae99fa1dc2baf3aeb2f7d7b7f3298
parent5c3f7825547005a161279cae3e4d884d2e67b665
qmeventd: explicitly close() pidfds

In most circumstances a pidfd gets closed automatically once the child
dies, and that *should* be guaranteed by us calling SIGKILL - however,
it seems that sometimes that doesn't happen, leading to leaked file
descriptors[0].

Also add a small note to verbose mode showing when the late-cleanup
actually happens, helped during debug.

[0] https://forum.proxmox.com/threads/cannot-shutdown-vm.83911/

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
qmeventd/qmeventd.c