This is the mail archive of the
glibc-cvs@sourceware.cygnus.com
mailing list for the glibc project.
libc/linuxthreads manager.c
- To: glibc-cvs at sourceware dot cygnus dot com
- Subject: libc/linuxthreads manager.c
- From: drepper at sourceware dot cygnus dot com
- Date: 7 May 2000 21:21:50 -0000
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sourceware.cygnus.com 00/05/07 14:21:49
Modified files:
linuxthreads : manager.c
Log message:
(__pthread_manager): Do not terminate manager after unblocking main
thread; wait for main thread's REQ_PROCESS_EXIT request instead.
Also, added REQ_KICK case to handle new request; this just does
nothing.
(pthread_exited): Do not terminate manager after unblocking main
thread.
(__pthread_manager_sighandler): If the main thread is waiting for all
other threads to die, send a REQ_KICK into the thread manager request
pipe to get it to clean out the threads and unblock the main thread as
soon as possible. This fixes the 2000 millisecond hang on shutdown
bug.