Wie man Zombie-Prozess tötet

Startete ich mein Programm in den Vordergrund (ein daemon-Programm), und dann tötete ich Sie mit kill -9aber ich bekomme einen zombie übrig und ich m nicht in der Lage, es zu töten mit kill -9. Wie tötet man einen zombie-Prozess?

Wenn der zombie ist ein Toter Prozess (bereits tote), wie Entferne ich es aus der Ausgabe von ps aux?

root@OpenWrt:~# anyprogramd &
root@OpenWrt:~# 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
root@OpenWrt:~# pidof anyprogramd
1170 1169 1167 1163
root@OpenWrt:~# kill -9 1170 1169 1167 1163
root@OpenWrt:~# ps aux |grep anyprogram
 1163 root         0 Z    [cwmpd]
root@OpenWrt:~# kill -9 1163
root@OpenWrt:~# ps aux |grep anyprogram
 1163 root         0 Z    [cwmpd]

InformationsquelleAutor der Frage MOHAMED | 2013-06-05

Schreibe einen Kommentar