summaryrefslogtreecommitdiff
path: root/lib/libc_r/TEST/test_sock_2.c
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-03-10 09:23:56 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-03-10 09:23:56 +0000
commit65d96f11b240382a9a3438788ac574063ea13f03 (patch)
treeee3259ad027a49d0abef6ceebbd818a345d51da3 /lib/libc_r/TEST/test_sock_2.c
parent7b835a298b0b450e6af3d563b4f601ed753e04de (diff)
define and use a SET_NAME macro so that these tests work under other thread implementations
Diffstat (limited to 'lib/libc_r/TEST/test_sock_2.c')
-rw-r--r--lib/libc_r/TEST/test_sock_2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/TEST/test_sock_2.c b/lib/libc_r/TEST/test_sock_2.c
index 59c240e6ac6..7f4bdf8c736 100644
--- a/lib/libc_r/TEST/test_sock_2.c
+++ b/lib/libc_r/TEST/test_sock_2.c
@@ -30,7 +30,7 @@ sock_write(arg)
{
int fd = *(int *)arg;
- pthread_set_name_np(pthread_self(), "writer");
+ SET_NAME("writer");
CHECKe(write(fd, MESSAGE5, sizeof(MESSAGE5)));
return(NULL);
}
@@ -43,7 +43,7 @@ waiter(sig)
int status;
pid_t pid;
- pthread_set_name_np(pthread_self(), "waiter");
+ SET_NAME("waiter");
CHECKr(pthread_mutex_lock(&waiter_mutex));
printf("waiting for child\n");
CHECKe(pid = wait(&status));