소스 검색

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

Kroese 1 년 전
부모
커밋
0f2717fec4
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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")