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