Subj : Re: NPTL and sigwait() problem under linux To : comp.programming.threads From : John Hickin Date : Wed Aug 17 2005 09:31 am I did stop reading way to early -- sorry about that. Will it work if you run it in a debugger? "Daniele" wrote in message news:uwvMe.24904$hV3.9429@nntpserver.swip.net... > John Hickin wrote: > > 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. > > > You've stopped reading too early, I've already tried :-/ > > Maybe it's a problem with my own system, I'm using libc6 (glibc) version > 2.3.2, with linux kernel 2.6.11.7 and 2.6.5, using nptl. > Running the program with LinuxThreads, typing > > # LD_ASSUME_KERNEL=2.4.21 ./myprogram > > works perfectly (but, of course, LinuxThreads is not fully standard > compliant). > > Daniele .