1
0
Эх сурвалжийг харах

fix: Prevent re-entry during shutdown (#176)

Kroese 1 жил өмнө
parent
commit
0f2717fec4
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      src/power.sh

+ 2 - 0
src/power.sh

@@ -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")