summaryrefslogtreecommitdiff
path: root/lib/libc_r/TEST/test_sigsuspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/TEST/test_sigsuspend.c')
-rw-r--r--lib/libc_r/TEST/test_sigsuspend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc_r/TEST/test_sigsuspend.c b/lib/libc_r/TEST/test_sigsuspend.c
index da345f8d0bc..a4978df7997 100644
--- a/lib/libc_r/TEST/test_sigsuspend.c
+++ b/lib/libc_r/TEST/test_sigsuspend.c
@@ -55,6 +55,8 @@ sigsuspender (void *arg)
int save_count, status, i;
sigset_t run_mask;
+ SET_NAME("sigsuspender");
+
/* Run with all signals blocked. */
sigfillset (&run_mask);
CHECKe(sigprocmask (SIG_SETMASK, &run_mask, NULL));
@@ -172,7 +174,6 @@ int main (int argc, char *argv[])
* Create the sigsuspender thread.
*/
CHECKr(pthread_create (&suspender_tid, &pattr, sigsuspender, NULL));
- pthread_set_name_np (suspender_tid, "sigsuspender");
/*
* Verify that an ignored signal doesn't cause a wakeup.