Problem with killing processes

Mike McCarty mike.mccarty at sbcglobal.net
Thu Dec 1 16:21:52 UTC 2005


James Wilkinson wrote:
> LC wrote:
> 
>>Try kill -9 pid
> 
> 
> Sebastian Kösters wrote:
> 
>>Dow not work too :(
> 
> 
> On Unix-like systems, kill -9 will only "fail" if the process is in the
> middle of a system call to the kernel.
> 
> Well, to be precise, the signal is held until the system call returns,
> and then the process is killed. But if the system call does not return
> (or hasn't yet returned), then the process will just sit there.

[snip]

To be more precise... the signal is delivered. What happens after that
depends on which signal it is, and whether it is caught, and whether
there are multiple threads in the program, and what the priority of the
process is. Delivery and use of signals is a complex issue, not easily
disposed of. However, it is beginning to look like he needs a reboot
at least, if not a BHR[1].


[1] BHR - Big Hairy Reset

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!




More information about the users mailing list