(pthread_join): Limited checking for invalid descriptors.

This commit is contained in:
Ulrich Drepper 2003-02-21 08:34:16 +00:00
parent 36f0ccda0b
commit 3182090730
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ pthread_join (threadid, thread_return)
struct pthread *pd = (struct pthread *) threadid;
/* 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;