[PATCH 4/4] manual/setjmp.texi: Clarify setcontext and signal handlers text
Andreas Schwab
schwab@linux-m68k.org
Thu Mar 13 12:03:00 GMT 2014
Will Newton <will.newton@linaro.org> writes:
> Calling setcontext from a signal handler can be done safely so
> it is sufficient to note that it is not recommended.
>
> Also mention in setcontext documentation that restoring a context
> created by a call to a signal handler is undefined.
Unspecified and undefined are different concepts. Unspecified means
that the input is still valid, and the implementation must react in a
defined way, but the standard doesn't say how. Undefined means that the
input is invalid, and the result is unpredictable.
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