diff options
Diffstat (limited to 'setjmp.c')
-rw-r--r-- | setjmp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -40,6 +40,10 @@ int test_setjmp(void) sigprocmask(SIG_UNBLOCK, &set, &set); oldset = set; + /* Improve the chances of catching failure of sigsetjmp to + * properly save the signal mask in the sigjmb_buf. */ + memset(&sjb, -1, sizeof sjb); + if (!sigsetjmp(sjb, 1)) { sigemptyset(&set); sigaddset(&set, SIGUSR1); |