Loading
qemu-vm: stop the swtpm once qemu stops
The idea is to run an async process waiting for swtpm and we have to ensure that `FD_CLOEXEC` is cleared on this process' stdin file descriptor, we use `fdflags` for this, a loadable builtin in Bash ≥ 5. The async process when exited will terminate `swtpm`, we bind the termination of the async process to the termination of QEMU by virtue of having `qemu` exec in that Bash script. Signed-off-by:Arthur Gautier <baloo@superbaloo.net> Co-authored-by:
Raito Bezarius <masterancpp@gmail.com>