On Mon, 10 Jul 2006 14:26:47 +0100 "Dermot Paikkos" <dermot@sciencephoto.com> wrote: > Has anyone else seen this behaviour? http://sources.redhat.com/bugzilla/show_bug.cgi?id=1297 http://bugs.gentoo.org/100259 http://bugs.debian.org/325600 As far as I can tell there are three solutions: 1) upgrade to a 2.6 kernel and compile glibc with only nptl (i.e. no linuxthreads) 2) use glibc-2.3.2 3) use the work around patch attached. -- Thomas Cort <tcort@gentoo.org> Gentoo/Alpha Developer
temp work around for defunct threads bug in alpha linuxthreads until a real fix can be found http://bugs.gentoo.org/100259 http://bugs.debian.org/325600 --- linuxthreads/manager.c +++ linuxthreads/manager.c @@ -971,7 +971,7 @@ pid_t pid; int status; - while ((pid = waitpid_not_cancel(-1, &status, WNOHANG | __WCLONE)) > 0) { + while ((pid = wait3(&status, WNOHANG | __WCLONE, NULL)) > 0 ) { pthread_exited(pid); if (WIFSIGNALED(status)) { /* If a thread died due to a signal, send the same signal to
Attachment:
pgpXtd0gs5Zqu.pgp
Description: PGP signature