Mercurial > hg > octave-nkf > gnulib-hg
changeset 3910:2f34e0925fe3
(segv_handler, c_stack_action) [! defined SA_SIGINFO]:
Do not assume SA_SIGINFO behavior.
Bug reported by Jim Meyering on NetBSD 1.5.2.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 22 Jun 2002 16:20:15 +0000 |
parents | 843fd4095617 |
children | 25fba7826e23 |
files | lib/c-stack.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -277,7 +277,7 @@ void *p; } alternate_signal_stack; -# if defined SA_ONSTACK && defined _SC_PAGESIZE +# if defined SA_ONSTACK && defined SA_SIGINFO && defined _SC_PAGESIZE /* Handle a segmentation violation and exit. This function is async-signal-safe. */ @@ -363,7 +363,7 @@ stack_overflow_message = _("stack overflow"); { -# if ! (defined SA_ONSTACK && defined _SC_PAGESIZE) +# if ! (defined SA_ONSTACK && defined SA_SIGINFO && defined _SC_PAGESIZE) return signal (SIGSEGV, die) == SIG_ERR ? -1 : 0; # else struct sigaction act;