linuxthread/linuxthread_db fix
Mark Kettenis
kettenis@wins.uva.nl
Sun Sep 3 06:38:00 GMT 2000
Looks like TD_REAP and TD_DEATH are a bit mixed up (probably due to
copy & paste).
Mark
2000-09-03 Mark Kettenis <kettenis@gnu.org>
* manager.c (pthread_exited): Correctly report event as TD_REAP
instead of TD_DEATH. Fix comments.
Index: linuxthreads/manager.c
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/manager.c,v
retrieving revision 1.57
diff -u -p -r1.57 manager.c
--- linuxthreads/manager.c 2000/08/30 07:37:18 1.57
+++ linuxthreads/manager.c 2000/09/03 13:31:51
@@ -745,7 +745,7 @@ static void pthread_exited(pid_t pid)
| th->p_eventbuf.eventmask.event_bits[idx])) != 0)
{
/* Yep, we have to signal the death. */
- th->p_eventbuf.eventnum = TD_DEATH;
+ th->p_eventbuf.eventnum = TD_REAP;
th->p_eventbuf.eventdata = th;
__pthread_last_event = th;
More information about the Libc-hacker
mailing list