From 9d241e0c1685b2051f3ddcf6c16182c72f66d642 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 7 Dec 2000 00:29:17 +0000 Subject: (pthread_detach): Allow case where the thread has already terminated. --- linuxthreads/join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linuxthreads') diff --git a/linuxthreads/join.c b/linuxthreads/join.c index 97da2dfa34..bbcebe12ae 100644 --- a/linuxthreads/join.c +++ b/linuxthreads/join.c @@ -181,7 +181,7 @@ int pthread_detach(pthread_t thread_id) pthread_descr th; __pthread_lock(&handle->h_lock, NULL); - if (invalid_handle(handle, thread_id)) { + if (nonexisting_handle(handle, thread_id)) { __pthread_unlock(&handle->h_lock); return ESRCH; } -- cgit 1.4.1