Subj : Re: pthread_mutex_lock throws an exception on receiving signal 15 To : comp.programming.threads From : Paul Pluzhnikov Date : Tue Oct 04 2005 08:36 am "pankaj-startup" writes: > On signal 15, signal handler creates another thread threadStop. What part of "you can only call async-signal safe functions in the signal context" didn't you understand? Signal handler can't legally call pthread_create() (or any other pthread function). > In exit, while cleanup, something goes wrong here and main thread > catches a exception. You invoked undefined behaviour, and now you are surprized? You have only yourself to blaim :( Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. .