about summary refs log tree commit diff
path: root/linuxthreads/pthread.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-08 08:50:37 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-08 08:50:37 +0000
commit9b2c75233e67af1943af87a4fd39c6b316064b1f (patch)
tree5cf54675b0067d9be0ee80e5f2d3e8fb2f3a180c /linuxthreads/pthread.c
parentbf2c10ded6bd31d7b923408f099b32b549acb934 (diff)
downloadglibc-9b2c75233e67af1943af87a4fd39c6b316064b1f.tar.gz
glibc-9b2c75233e67af1943af87a4fd39c6b316064b1f.tar.xz
glibc-9b2c75233e67af1943af87a4fd39c6b316064b1f.zip
Update.
2001-01-08  Ulrich Drepper  <drepper@redhat.com>

	* libio/bits/stdio.h (printf): Define macro to map printf call to
	fprintf which gcc can optimize.
Diffstat (limited to 'linuxthreads/pthread.c')
-rw-r--r--linuxthreads/pthread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c
index 75cac05ac0..836d8a81e1 100644
--- a/linuxthreads/pthread.c
+++ b/linuxthreads/pthread.c
@@ -740,7 +740,10 @@ static void pthread_exit_process(int retcode, void *arg)
     /* Main thread should accumulate times for thread manager and its
        children, so that timings for main thread account for all threads. */
     if (self == __pthread_main_thread)
-      waitpid(__pthread_manager_thread.p_pid, NULL, __WCLONE);
+      {
+	waitpid(__pthread_manager_thread.p_pid, NULL, __WCLONE);
+	free (__pthread_manager_thread_bos);
+      }
   }
 }