about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-21 08:35:19 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-21 08:35:19 +0000
commit49dc759f94148d794f9698823a09a27526559e85 (patch)
tree69274d0a78335dda42a1af563b0e900af877a37f /nptl
parent3182090730acfd9c3ccdea41786c4489ef155d6c (diff)
downloadglibc-49dc759f94148d794f9698823a09a27526559e85.tar.gz
glibc-49dc759f94148d794f9698823a09a27526559e85.tar.xz
glibc-49dc759f94148d794f9698823a09a27526559e85.zip
Update.
2003-02-21  Ulrich Drepper  <drepper@redhat.com>

	* pthread_join.c (pthread_join): Limited checking for invalid
	descriptors.
	* pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog6
-rw-r--r--nptl/pthread_timedjoin.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index f650542dbf..2c5c338231 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-21  Ulrich Drepper  <drepper@redhat.com>
+
+	* pthread_join.c (pthread_join): Limited checking for invalid
+	descriptors.
+	* pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
+
 2003-02-20  Ulrich Drepper  <drepper@redhat.com>
 
 	* pthread_create.c (deallocate_tsd): Reset found_nonzero at the
diff --git a/nptl/pthread_timedjoin.c b/nptl/pthread_timedjoin.c
index dd51fea4aa..0883f94f60 100644
--- a/nptl/pthread_timedjoin.c
+++ b/nptl/pthread_timedjoin.c
@@ -42,7 +42,7 @@ pthread_timedjoin_np (threadid, thread_return, abstime)
   int result;
 
   /* Make sure the descriptor is valid.  */
-  if (DEBUGGING_P && __find_in_stack_list (pd) == NULL)
+  if ((DEBUGGING_P && __find_in_stack_list (pd) == NULL) || pd->tid <= 0)
     /* Not a valid thread handle.  */
     return ESRCH;