Subj : Re: async signal safety? [was Re: Semaphores and pthreads] To : comp.programming.threads From : Alexander Terekhov Date : Tue Jan 11 2005 12:48 pm Jomu wrote: [...] > My rationale was that these handlers are invoked > only when signaled threads were out of any pthread_ code To be safe, your signaled threads must be out of any async-signal- UNsafe stuff (not only "pthread_ code"), must better NOT touch errno (it can be modified even by async-cancel-safe calls). And your handlers should better NOT call any cancel points (there are a few of them among async-signal-"safe" calls). regards, alexander. .