LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kill a hung task when kill -9 doesn't help (https://www.linuxquestions.org/questions/linux-general-1/kill-a-hung-task-when-kill-9-doesnt-help-697305/)

10110111 01-14-2009 01:23 PM

Kill a hung task when kill -9 doesn't help
 
I try this command: 'cat /proc/bus/usb/001/001' It shoudn't do any harm to my system... But, 'cat' process hangs forever, and can't be killed by 'killall -9 cat' command. How can i stop such processes?
I can't even enter hibernation state because of kernel's inability to stop all tasks such as this one.

indienick 01-14-2009 01:42 PM

EDIT: Solution provided by bkorb.

bkorb 01-14-2009 01:48 PM

Your request is inside a kernel call and the kernel has locked the calling stack as unkillable. The SIGKILL is held pending return from the call. Reboot. Sorry.

10110111 04-02-2009 10:07 AM

Quote:

request is inside a kernel call and the kernel has locked the calling stack as unkillable
Maybe there is some way to force interruption of a kernel call, making it return an error to the process and unlock the process by writing a kernel module, or something... or such a module already exists?

AlucardZero 04-02-2009 11:10 AM

If you look at the process in top, it will be in state "D", or uninterruptible sleep. It is off in a driver call and is actually uninterruptible. Reboot, sorry.


All times are GMT -5. The time now is 02:25 PM.