Subj : Re: sigwait() is not catching SIGUSR1 signal To : comp.programming.threads,comp.unix.programmer From : =?ISO-8859-1?Q?=22Nils_O=2E_Sel=E5sdal=22?= Date : Fri Mar 11 2005 10:32 am Neelakantan wrote: > Hi, > > i have a problem with sigwait() in a multithreaded program. > > In this program some thread will be generating the signal SIGUSR1 at > some time(asynchronously) and there is a dedicated thread for handling > the asynchronous(SIGUSR1 in my case) signals. > > The sinal handling thread uses sigwait() to catch the signal, however > the signal is not caught by the sigwait() function. I have blocked the > signal SIGUSR1 before the threads are created aswell before the sigwait() > is called. You have no way to determin wether a given thread catches/receives the signal. Probably some other thread received it. .