c-stack: test that stack overflow can be caught
authorEric Blake <ebb9@byu.net>
Mon, 25 Aug 2008 12:26:56 +0000 (06:26 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 25 Aug 2008 12:26:56 +0000 (06:26 -0600)
commite3ea810706b94a625eadc27dda079d74cdd68440
treec4caef8a31ac62a487c11d6be6dc74f43af701b3
parent4c7d2071f79f8f753a2472c08ba8e7e1bb1ca455
c-stack: test that stack overflow can be caught

* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
that platform allows handling stack overflow; at least OS/2 EMX
has sigaltstack, but crashes before transferring control to
handler on stack overflow.
* lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
check for HAVE_STACK_OVERFLOW_HANDLING.
Reported by Elbert Pol.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/c-stack.c
m4/c-stack.m4