longjmp out of signal handler (was Re: alloca() portability)

Henry Spencer henry at zoo.toronto.edu
Thu Nov 22 05:13:58 AEST 1990


In article <249 at smds.UUCP> rh at smds.UUCP (Richard Harter) writes:
>Is it allowed to ask for help?  :-)

No. (!)  The exact wording is

	If the signal occurs other than as the result of calling the
	`abort' or `raise' function, the behavior is undefined if the
	signal handler calls any function in the standard library other
	than the `signal' function itself (with a first argument of the
	signal number corresponding to the signal that caused the
	invocation of the handler) or refers to any object with static
	storage duration other than by assigning a value to a static
	storage duration variable of type `volatile sig_atomic_t'.
-- 
"I don't *want* to be normal!"         | Henry Spencer at U of Toronto Zoology
"Not to worry."                        |  henry at zoo.toronto.edu   utzoo!henry



More information about the Comp.lang.c mailing list