Explorar el Código

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

Kroese hace 1 año
padre
commit
0f2717fec4
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/power.sh

+ 2 - 0
src/power.sh

@@ -50,6 +50,8 @@ finish() {
   local pid
   local reason=$1
 
+  touch "$QEMU_END"
+
   if [ -f "$QEMU_PID" ]; then
 
     pid=$(<"$QEMU_PID")