Subj : Re: nptl and signals To : comp.programming.threads From : Joe Seigh Date : Wed Jul 27 2005 06:21 am divijbhatt@gmail.com wrote: > > Chris Vine wrote: >>This approach will not work correctly with linuxthreads, as it does not >>deliver signals correctly in conformity with POSIX. However, if you are >>using NPTL it will be OK. >> >>Chris > > > > Hi, > Chris I have seen that link instead I have put the pthread_sigmask > before creating the threads but my program blocks.So, I put them after > creating the threads where I am checking the flags just before that. > I think there is some problem with design also but tell me I am using > sigwait for blocked signals when those signals will be dilevered to the > calling thread then signal handler function willn't be executed? I am > making the flag 1 in that signal handler function that's why I need > that function to be worked upon. > I'm guessing since Chris mentioned linuxthreads that you were depending on non conforming behavior (i.e. incorrect) from linuxthreads. You can't depend on NPTL being broken in that way. You need to learn to do pthreads programming correctly. However we can't give you any suggestions or hints since you still haven't told us what you are trying to do. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .