summaryrefslogtreecommitdiff
path: root/nptl/pthread_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_exit.c')
-rw-r--r--nptl/pthread_exit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/pthread_exit.c b/nptl/pthread_exit.c
index 371808116a..263e792806 100644
--- a/nptl/pthread_exit.c
+++ b/nptl/pthread_exit.c
@@ -29,3 +29,7 @@ __pthread_exit (value)
__do_cancel ();
}
strong_alias (__pthread_exit, pthread_exit)
+
+/* After a thread terminates, __libc_start_main decrements
+ __nptl_nthreads defined in pthread_create.c. */
+PTHREAD_STATIC_FN_REQUIRE (pthread_create)