fix: Prevent re-entry during shutdown
This commit is contained in:
parent
1e796d0dca
commit
5abf7f99b8
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ finish() {
|
||||||
local pid
|
local pid
|
||||||
local reason=$1
|
local reason=$1
|
||||||
|
|
||||||
|
touch "$QEMU_END"
|
||||||
|
|
||||||
if [ -f "$QEMU_PID" ]; then
|
if [ -f "$QEMU_PID" ]; then
|
||||||
|
|
||||||
pid=$(<"$QEMU_PID")
|
pid=$(<"$QEMU_PID")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue