From ee5d48553adde607b88bcbb1ac533d88f6a0207a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 10 Jun 2000 07:45:56 +0000 Subject: Update. 2000-06-10 Ulrich Drepper * pthread.c (__pthread_create_2_1): Optimize a bit. * internals.h (invalid_handle): Also test for p_terminated != 0. (nonexisting_handle): New function. Same as old invalid_handle. * join.c (pthread_join): Use nonexisting_handle instead of invalid_handle to test for acceptable thread handle. Reported by Permaine Cheung . --- linuxthreads/join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linuxthreads/join.c') diff --git a/linuxthreads/join.c b/linuxthreads/join.c index 95c0ab6963..adcac46aa2 100644 --- a/linuxthreads/join.c +++ b/linuxthreads/join.c @@ -116,7 +116,7 @@ int pthread_join(pthread_t thread_id, void ** thread_return) extr.pu_extricate_func = join_extricate_func; __pthread_lock(&handle->h_lock, self); - if (invalid_handle(handle, thread_id)) { + if (nonexisting_handle(handle, thread_id)) { __pthread_unlock(&handle->h_lock); return ESRCH; } -- cgit v1.2.3