Subj : Re: async signal safety? [was Re: Semaphores and pthreads] To : comp.programming.threads From : Alexander Terekhov Date : Tue Jan 11 2005 12:52 pm Alexander Terekhov wrote: > > 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 ^ | I meant async-signal-safe ----------+ (but they are not really "safe", so to say ;-) ). > handlers should better NOT call any cancel points (there are a few > of them among async-signal-"safe" calls). regards, alexander. .