Skip to content

Commit

Permalink
fix: Prevent re-entry during shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Feb 16, 2024
1 parent 1e796d0 commit 5abf7f9
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 @@ -40,6 +40,8 @@ finish() {
local pid
local reason=$1

touch "$QEMU_END"

if [ -f "$QEMU_PID" ]; then

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

0 comments on commit 5abf7f9

Please sign in to comment.