killing a process gone bad.

Boyd Roberts boyd at necisa.ho.necisa.oz
Mon Nov 5 14:21:57 AEST 1990


>In article <1119 at massey.ac.nz>
>	GEustace at massey.ac.nz (Glen Eustace) writes:
>
>It would appear that kill doesn't lock the process table will killing
>all of the process group, they still kept replicating.
>

On a uni-processor the process table is effectively locked because
no other process can run while the kill() system call is running.
System calls only relinquish the CPU when they want to.  kill() is
not one of them.

If it's a uni-processor and they have the same process group its easy.
A multi-processor or something calling setpgrp() is another problem.
Your process spawning may vary.


Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``November spawned a monster...'' - Morrissey



More information about the Comp.unix.misc mailing list