(pthread_detach): Allow case where the thread has already terminated.
authorUlrich Drepper <drepper@redhat.com>
Thu, 7 Dec 2000 00:29:17 +0000 (00:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 7 Dec 2000 00:29:17 +0000 (00:29 +0000)
linuxthreads/join.c

index 97da2df..bbcebe1 100644 (file)
@@ -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;
   }