Subj : Re: NPTL and sigwait() problem under linux To : comp.programming.threads From : John Hickin Date : Tue Aug 16 2005 01:39 pm "Daniele" wrote in message news:TkoMe.24798$hV3.9406@nntpserver.swip.net... > I want to create a thread that handles all the signals sent to the > process, and all the other threads shouldn't be aware of signals at all. > > I used sigprocmask() to block all the signals before creating any Stopping right here (being lazy): If sigprocmask(2) is used in a multi-threaded program, it will be the same as if thr_sigsetmask() or pthread_sigmask() has been called. POSIX leaves the semantics of the call to sigprocmask(2) unspecified in a multi-threaded process, so programs that care about POSIX portability should not depend on this semantic. So try pthread_sigmask instead. Regards, John. .