From c4103b34805bc2694ec7232005eb9cf66d3f7c67 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 13 Apr 2001 04:12:32 +0000 Subject: Update. 2001-04-12 Ulrich Drepper * sysdeps/ia64/Dist: Add elf/entry.h. * iconvdata/Makefile (distribute): Add TESTS2. --- linuxthreads_db/td_ta_map_id2thr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'linuxthreads_db/td_ta_map_id2thr.c') diff --git a/linuxthreads_db/td_ta_map_id2thr.c b/linuxthreads_db/td_ta_map_id2thr.c index 6fb1ba96aa..7c9c7c14fd 100644 --- a/linuxthreads_db/td_ta_map_id2thr.c +++ b/linuxthreads_db/td_ta_map_id2thr.c @@ -1,5 +1,5 @@ /* Map thread ID to thread handle. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1999. @@ -55,6 +55,9 @@ td_ta_map_id2thr (const td_thragent_t *ta, pthread_t pt, td_thrhandle_t *th) if (pds.p_tid != pt) return TD_BADTH; + if (pds.p_terminated != 0) + return TD_NOTHR; + /* Create the `td_thrhandle_t' object. */ th->th_ta_p = (td_thragent_t *) ta; th->th_unique = phc.h_descr; -- cgit v1.2.3