Skip to content

Commit 3678f1a

Browse files
committed
fix nuv ide kill for zombies
1 parent bc00fea commit 3678f1a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ide/nuvfile.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ tasks:
131131
while $LOOP
132132
do
133133
LOOP=false
134-
ps -a -o pgid,pid | while read GRP PID
134+
ps -a -o pgid,pid,stat | grep -v 'Z' | while read GRP PID STAT
135135
do
136-
echo $GRP $PID
136+
echo Terminating $PID in $GRP
137137
if test "$GRP" = "$PGRP"
138-
then kill -9 "$PID"
138+
then echo $GRP $PID
139+
kill -9 "$PID"
139140
LOOP=true
140141
fi
141142
done

0 commit comments

Comments
 (0)