fix: Prevent re-entry during shutdown (#633)

This commit is contained in:
Kroese 2024-02-16 16:03:37 +01:00 committed by GitHub
parent f9340ec3d6
commit 8421a391b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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