From: Ulrich Drepper Date: Mon, 7 Apr 2003 21:09:12 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~936 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69b35e862fd5c72d77485165a6ae310fe77570fb;p=thirdparty%2Fglibc.git Update. 2003-04-07 Ulrich Drepper * pthread_detach.c (pthread_detach): Fix test for invalid TID. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 7bfcef863b0..1ff2800a83d 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,7 @@ +2003-04-07 Ulrich Drepper + + * pthread_detach.c (pthread_detach): Fix test for invalid TID. + 2003-04-06 Ulrich Drepper * descr.h (struct pthread): Move cancelhandling member to the front. diff --git a/nptl/pthread_detach.c b/nptl/pthread_detach.c index ce13a2cfde1..1f0c2fe7ceb 100644 --- a/nptl/pthread_detach.c +++ b/nptl/pthread_detach.c @@ -29,7 +29,7 @@ pthread_detach (th) struct pthread *pd = (struct pthread *) th; /* Make sure the descriptor is valid. */ - if (INVALID_TD_P (pd)) + if (INVALID_NOT_TERMINATED_TD_P (pd)) /* Not a valid thread handle. */ return ESRCH;