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

From: Linus Torvalds (torvalds@transmeta.com)
Date: Tue Jun 03 2003 - 11:35:29 EST


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/



This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:20 EST