c-stack: assume stack overflow if SA_SIGINFO unsupported
authorEric Blake <eblake@redhat.com>
Wed, 19 Jan 2011 17:12:12 +0000 (10:12 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 19 Jan 2011 17:12:12 +0000 (10:12 -0700)
commitf607ad3bb9988f9a7bf0b6d3f18f92bdee12724c
treeae3895f4d2617d52bd112611c2ccf365348b3e59
parent2f3c99763b7a6aa0fefa9cbf22bd5f65991d2f12
c-stack: assume stack overflow if SA_SIGINFO unsupported

* lib/c-stack.c (SIGACTION_WORKS): Rename...
(SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
sigaction will work.
(die): Assume stack overflow if siginfo doesn't work, to let Haiku
behavior match Linux.
* tests/test-c-stack.c (main): Prefer NULL for pointers.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/c-stack.c
tests/test-c-stack.c