Ich startete mein Programm im Vordergrund (ein Daemon-Programm), und dann tötete ich es mit kill -9
, aber ich bekomme einen Zombie übrig und ich bin nicht in der Lage, es mit kill -9
zu töten. Wie töte ich einen Zombie-Prozess?Wie Zombie-Prozess zu töten
Wenn der Zombie ist ein toter Prozess (bereits getötet), wie ich es aus der Ausgabe von ps aux
entfernen?
[email protected]:~# anyprogramd &
[email protected]:~# ps aux | grep anyprogram
1163 root 2552 S anyprogramd
1167 root 2552 S anyprogramd
1169 root 2552 S anyprogramd
1170 root 2552 S anyprogramd
10101 root 944 S grep anyprogram
[email protected]:~# pidof anyprogramd
1170 1169 1167 1163
[email protected]:~# kill -9 1170 1169 1167 1163
[email protected]:~# ps aux |grep anyprogram
1163 root 0 Z [cwmpd]
[email protected]:~# kill -9 1163
[email protected]:~# ps aux |grep anyprogram
1163 root 0 Z [cwmpd]
Was sagt 'ps -o ppid 1163'? Das heißt, wer ist der Vater von 1163? Das ist der Prozess, der beendet werden muss. –