From fd5d6a6294b0db3f2143d2735b78bffa284b4259 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 9 Nov 2004 21:52:49 +0000 Subject: [BZ #530] 2004-11-09 Roland McGrath [BZ #530] * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads here, before calling clone. * pthread_create.c (start_thread): Don't do it here. --- nptl/pthread_create.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'nptl/pthread_create.c') diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 7293f4c71c..82a3c683aa 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -222,9 +222,6 @@ __free_tcb (struct pthread *pd) static int start_thread (void *arg) { - /* One more thread. */ - atomic_increment (&__nptl_nthreads); - struct pthread *pd = (struct pthread *) arg; #if HP_TIMING_AVAIL -- cgit 1.4.1