Friday, 15 July 2011

linux - Script for killing defunct process with parent 1 -



linux - Script for killing defunct process with parent 1 -

i have process kid of init (ppid = 1), bad happened in processes , process became zombie -

ps -ef | grep defunct root 10384 1 0 jun12 ? 00:48:22 [myproc] <defunct>

i tried killing kill -9 , pkill , killall nil helps. tried sending sigchld parent init process not help either.

init not reaping process reason (probably stuck i/o - bug in our code yet discovered)

it seems way rid of reboot server, not acceptable solution.

how kill process, or prevent happening in future.

i can command way launch process if can prevent becoming defunct.

the process holding resources need use, hence leaving hang there doesn't help.

the unpleasant reply is, can’t. if process stuck in syscall, cannot reaped in way (otherwise, init it), @ to the lowest degree not software.

if i/o related pluggable hardware, unplugging hardware might terminate syscall , process can go on and/or terminate.

linux

No comments:

Post a Comment