about summary refs log tree commit diff
path: root/linuxthreads/join.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-12-07 00:29:17 +0000
committerUlrich Drepper <drepper@redhat.com>2000-12-07 00:29:17 +0000
commit9d241e0c1685b2051f3ddcf6c16182c72f66d642 (patch)
treec36d4c5f5d1384591f78d9dbfdd05be5086f2ab3 /linuxthreads/join.c
parent1ca315fca04fb3272276c8e6adf7e4d5c5224231 (diff)
downloadglibc-9d241e0c1685b2051f3ddcf6c16182c72f66d642.tar.gz
glibc-9d241e0c1685b2051f3ddcf6c16182c72f66d642.tar.xz
glibc-9d241e0c1685b2051f3ddcf6c16182c72f66d642.zip
(pthread_detach): Allow case where the thread has already terminated.
Diffstat (limited to 'linuxthreads/join.c')
-rw-r--r--linuxthreads/join.c2
1 files changed, 1 insertions, 1 deletions
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;
   }