debug/tst-longjmp_chk2: Make signal handler more conservative [BZ #20248]
authorFlorian Weimer <fweimer@redhat.com>
Mon, 13 Jun 2016 11:08:39 +0000 (13:08 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 13 Jun 2016 14:36:46 +0000 (16:36 +0200)
commit2c41b52901331f5c761015af786a3976e225d779
tree01a09edb1fb8aeb35cc5ad8525be286d08e181ca
parentf5c77f78ec03363d5e550c4996deb75ee3f2e32a
debug/tst-longjmp_chk2: Make signal handler more conservative [BZ #20248]

Currently, printf needs more stack space than what is available with
SIGSTKSZ.  This commit use the the write system call directly instead.

Also use sig_atomic_t for the “pass” variable (for general
correctness), and restore signal handlers to their defaults, to avoid
masking crashes.
ChangeLog
debug/tst-longjmp_chk2.c