diff options
Diffstat (limited to 'tests/test-16.c')
-rw-r--r-- | tests/test-16.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test-16.c b/tests/test-16.c index 2cf1c51..22ab3c5 100644 --- a/tests/test-16.c +++ b/tests/test-16.c @@ -21,9 +21,13 @@ test (void *arg) printf ("test: %d\n", pthread_self ()); + err = pthread_kill (pthread_self (), 0); + if (err) + error (1, err, "pthread_kill (pthread_self (), 0)"); + err = pthread_kill (pthread_self (), SIGUSR1); if (err) - error (1, err, "pthread_kill"); + error (1, err, "pthread_kill (pthread_self (), SIGUSR1)"); /* To avoid using condition variables in a signal handler. */ while (i == 0) @@ -49,6 +53,10 @@ main (int argc, char **argv) printf ("main: %d\n", pthread_self ()); + err = pthread_kill (pthread_self (), 0); + if (err) + error (1, err, "pthread_kill (pthread_self (), 0)"); + sa.sa_handler = handler; sa.sa_mask = 0; sa.sa_flags = 0; |