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

Alex Riesen (alexander.riesen@synopsys.COM)
Wed, 30 Apr 2003 11:15:52 +0200


Lamont Granquist, Tue, Apr 29, 2003 22:14:22 +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.

probably because it is used by pthreads for internal communication.
It's mentioned in 2.2.5 (at least) sources.

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