fix: Prevent re-entry during shutdown

This commit is contained in:
Kroese 2024-02-16 16:00:10 +01:00 committed by GitHub
parent 01f9603c47
commit 31b2b6827d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,8 @@ finish() {
local pid
local reason=$1
touch "$QEMU_END"
if [ -f "$QEMU_PID" ]; then
pid=$(<"$QEMU_PID")