Re: [patch] new sys_tkill2() system call, 2.5.70

Linus Torvalds (torvalds@transmeta.com)
Tue, 3 Jun 2003 09:35:29 -0700 (PDT)


On Tue, 3 Jun 2003, Ingo Molnar wrote:
>
> are you suggesting to extend sys_tgkill() functionality to also detect -1
> for the PID, and do a process-signal send?

I don't care much, but that zero special case is definitely not a good
idea.

You might make the thing acceptable to me by just removing the "zero means
everythign", and replacing that logic with

if (!tgid)
tgid = current->tgid;

which is similar to how we handle zeroes in some other places. In other
words, a zero is not a "wildcard", it means "_this_ thread group".

Linus

-
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/