diff --git a/src/power.sh b/src/power.sh index 79d2600d..678895ff 100644 --- a/src/power.sh +++ b/src/power.sh @@ -34,6 +34,8 @@ finish() { local pid local reason=$1 + touch "$QEMU_END" + if [ -f "$QEMU_PID" ]; then pid=$(<"$QEMU_PID")