Re: SIGRTMIN, F_SETOWN(-getpgrp()) and threads

From: Lamont Granquist (lamont@scriptkiddie.org)
Date: Tue Apr 29 2003 - 15:14:22 EST


On Tue, 29 Apr 2003, Alex Riesen wrote:
> Lamont Granquist, Tue, Apr 29, 2003 01:34:21 +0200:
> >
> > I'm attempting to send SIGRTMIN to an entire pgrp composed of threads.
> > I'm running into issues with the management thread getting this signal and
> > dying because it is uncaught in that thread. Is there any way to make the
> > management thread ignore this signal? (and i'm running linux 2.4.20-ish
> > and glibc-2.2.4-19.3)
> >
>
> ignore it before pthreads are initialized?
>
> int main(int argc, char* argv[])
> {
> signal(SIGRTMIN, SIG_IGN);
> ...

That doesn't work. After the first pthread_create() if you raise() the
signal again (even if you ignore it in the thread that you create) you'll
still have the manager thread exit.

-
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 : Wed Apr 30 2003 - 22:00:32 EST