Skip to content

Commit

Permalink
fix: Prevent re-entry during shutdown (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Feb 16, 2024
1 parent f9340ec commit 8421a39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/power.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ finish() {
local pid
local reason=$1

touch "$QEMU_END"

if [ -f "$QEMU_PID" ]; then

pid=$(<"$QEMU_PID")
Expand Down

0 comments on commit 8421a39

Please sign in to comment.