vmspawn: close host vsock fd once we passed it to the child
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Jan 2024 17:05:32 +0000 (18:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jan 2024 13:03:09 +0000 (14:03 +0100)
commitc7c6b6f28c2c006c059d40d5d6a7032f42ad8252
treed0956323eabc2872a11c374d82d622d73b2bc5ce
parent02aacdcf9658b87eb6c43ca7bebac2448046c1c5
vmspawn: close host vsock fd once we passed it to the child

Without this I qemu simply froze in a weird state for me if I kill it:
it was supposedly a zombie, but we'd get the pidfd POLLIN event for it
only once the fd is closed. Hence let's close it right-away.

(Smells like a kernel issue actually, but too lazy to bother with this).
src/vmspawn/vmspawn.c