Subj : Re: NPTL and sigwait() problem under linux To : comp.programming.threads From : Daniele Date : Wed Aug 17 2005 03:28 am 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 .