Consensus on MT-, AS- and AC-Safety docs.
Andreas Schwab
schwab@linux-m68k.org
Tue Dec 3 15:40:00 GMT 2013
"Carlos O'Donell" <carlos@redhat.com> writes:
> * Was it ever POSIX's intent to allow a signal handler to
> modify the errno of the interrupted code sequence or was
> that simply a consequence of being a signal handler and
> modifying global state?
<http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaction.htm>:
Note in particular that even the "safe" functions may modify errno; the
signal-catching function, if not executing as an independent thread,
should save and restore its value in order to avoid the possibility that
delivery of a signal in between an error return from a function that
sets errno and the subsequent examination of errno could result in the
signal-catching function changing the value of errno.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list