Kaynağa Gözat

fix psutil.ZombieProcess , add CMD starter

micha 21 saat önce
ebeveyn
işleme
fbfd8f7a67
5 değiştirilmiş dosya ile 9 ekleme ve 5 silme
  1. 1 1
      init/10-ASP.sh
  2. 1 1
      init/20-CONSOLE.sh
  3. 1 1
      init/40-TKSDL.sh
  4. 1 1
      init/50-TK-GUI.sh
  5. 5 1
      tool/movewin.py

+ 1 - 1
init/10-ASP.sh

@@ -5,7 +5,7 @@ path="/opt/LibreLight"
 SES="ASP"
 CMD="sh $path/ASP/start_ASP.sh "
 
-echo "- STARTING $SES"
+echo "- STARTING $SES   -- $CMD"
 
 cd "$path"
 screen -XS "$SES" quit | echo ""

+ 1 - 1
init/20-CONSOLE.sh

@@ -5,7 +5,7 @@ path="/opt/LibreLight"
 SES="CONSOLE.py"
 CMD="-- bash -c 'python3 $path/Xdesk/console.py'"
 
-echo "- STARTING $SES"
+echo "- STARTING $SES  -- $CMD"
 
 cd "$path/Xdesk/"
 #echo $(pwd)

+ 1 - 1
init/40-TKSDL.sh

@@ -6,7 +6,7 @@ path="/opt/LibreLight"
 SES="TKSDL.py"
 CMD="python3 $path/Xdesk/tksdl/fix.py "
 
-echo "- STARTING $SES"
+echo "- STARTING $SES -- $CMD"
 
 cd "$path/Xdesk/"
 screen -XS "$SES" quit | echo ""

+ 1 - 1
init/50-TK-GUI.sh

@@ -5,7 +5,7 @@ path="/opt/LibreLight"
 SES="EDITOR.py"
 CMD="python3 $path/Xdesk/LibreLightDesk.py "
 
-echo "- STARTING $SES"
+echo "- STARTING $SES -- $CMD"
 
 cd "$path/Xdesk/"
 screen -XS "$SES" quit | echo ""

+ 5 - 1
tool/movewin.py

@@ -378,7 +378,11 @@ def search_process(_file_path,exact=1):
         except psutil.NoSuchProcess:
             break
 
-        ps = p.cmdline()
+        try:
+            ps = p.cmdline()
+        except psutil.ZombieProcess as e:
+            print("exception search_process zombi",e)
+            continue
 
         if len(ps) < 2:
             continue