pthread detach problem with glibc 2.2 on SMP
Wolfram Gloger
Wolfram.Gloger@dent.med.uni-muenchen.de
Wed Dec 6 01:22:00 GMT 2000
> Note that this test you have introduced is precisely equivalent to
>
> if (nonexisting_handle(handle, thread_id))
>
> so it should be expressed this way.
You're correct, thanks. Updated patch below.
Regards,
Wolfram.
2000-12-06 Wolfram Gloger <wg@malloc.de>
* join.c (pthread_detach): Allow case where the thread has already
terminated.
--- join.c 2000/12/06 08:37:38 1.1
+++ join.c 2000/12/06 09:20:17
@@ -181,7 +181,7 @@
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;
}
More information about the Libc-alpha
mailing list