fix: Prevent re-entry during shutdown (#176)
This commit is contained in:
parent
01f9603c47
commit
0f2717fec4
|
@ -50,6 +50,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 New Issue