Subj : Re: async signal safety? To : comp.programming.threads From : Alexander Terekhov Date : Wed Jan 12 2005 11:18 am Marcin 'Qrczak' Kowalczyk wrote: [...] > http://www.opengroup.org/onlinepubs/007904875/functions/sigaction.html > > "Note in particular that even the "safe" functions may modify errno; > the signal-catching function, if not executing as an independent > thread, may want to save and restore its value." > > This suggests that this usage was indeed intended. If it works in > practice, it should have been specified more clearly. > > If it doesn't, this paragraph should be removed, but then it should > be clarified what happens when you call an async-signal-safe function > which modifies errno from a signal handler. File a DR. regards, alexander. .