about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
   }