lkml.org 
[lkml]   [2003]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SIGRTMIN, F_SETOWN(-getpgrp()) and threads
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/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.075 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site