From 0f2717fec446aba116f2e906836c417347696a56 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 16 Feb 2024 16:00:21 +0100 Subject: [PATCH] fix: Prevent re-entry during shutdown (#176) --- src/power.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/power.sh b/src/power.sh index cce28f2..5375e65 100644 --- a/src/power.sh +++ b/src/power.sh @@ -50,6 +50,8 @@ finish() { local pid local reason=$1 + touch "$QEMU_END" + if [ -f "$QEMU_PID" ]; then pid=$(<"$QEMU_PID")