I can not kill one process with command kill -9, is there any way to kill it without restarting the machine?
3 Answers
If the process is in [defunct] state possible reason could be that it waits one of his child processes to complete. If this is handwrited script try to observe what child processes he calls and check if there are some hanging.
If a process is not terminated after a kill -9 the reason is that it is stuck in an uninterruptible sleep in kernel code. This is mostly related to I/O problems. Either the sleep ends (I/O ends or fails or times out, etc.) and then the process will be cleaned up, or you'll have to reboot the machine.
If you send signal number 9 (sigKILL) to right PID and process will not end, there is only one possible solution. Restart machine.
Common mistake is sending sigKILL to wrong proces number PID, so check it twicely before hit enter.
defunctand when that happens, you often do need to restart the machine to solve it. You should find out what happened to it though as it's fairly unusual that it would get stuck like that. It may possibly indicate a hardware or driver issue.