Re: [PATCH] kill(-1,sig)

From: Simon Kirby (sim@netnation.com)
Date: Fri Dec 14 2001 - 15:49:25 EST


On Fri, Dec 14, 2001 at 12:40:16PM -0800, Linus Torvalds wrote:

> I do agree, I've used "kill -9 -1" myself.
>
> However, let's see how problematic it is to try to follow it (in 2.5.x,
> not 2.4.x) and if people really complain.

Doesn't init use kill -15 -1, kill -9 -1, etc., to terminate all
processes? Hmm. Yes, it does, but the kernel checks for (pid > 1).

By removing the single compare in the kernel, we're potentially
increasing the size of userspace applications from a single syscall to a
whole walking of /proc just to kill other running processes. Ugh.

"kill -STOP -1" is also great for freezing forkbombs which would no
longer possible with the /proc method.

Simon-

[ Stormix Technologies Inc. ][ NetNation Communications Inc. ]
[ sim@stormix.com ][ sim@netnation.com ]
[ Opinions expressed are not necessarily those of my employers. ]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:29 EST