shell编程相关

kill僵尸进程

  • 强制kill掉其父进程,但是会导致shell也死掉
1
ps -ef | grep defunct | awk '{ len=split($0, a, " ");print a[3]; }' | xargs kill -9