From: Ulrich Drepper Date: Fri, 21 Feb 2003 08:34:16 +0000 (+0000) Subject: (pthread_join): Limited checking for invalid descriptors. X-Git-Tag: cvs/glibc-2_3_2~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3182090730acfd9c3ccdea41786c4489ef155d6c;p=thirdparty%2Fglibc.git (pthread_join): Limited checking for invalid descriptors. --- diff --git a/nptl/pthread_join.c b/nptl/pthread_join.c index 387f230576e..84f993c7001 100644 --- a/nptl/pthread_join.c +++ b/nptl/pthread_join.c @@ -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;