From eaa53d0f77691e37aa6f22e18205a2ba019e1a1c Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 27 May 2021 09:11:10 -0300 Subject: nptl: Remove exit-thread.h No function change. The code is used only for Linux, besides being included in generic code. --- sysdeps/nptl/libc_start_call_main.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/nptl') diff --git a/sysdeps/nptl/libc_start_call_main.h b/sysdeps/nptl/libc_start_call_main.h index c579c65..b56bf34 100644 --- a/sysdeps/nptl/libc_start_call_main.h +++ b/sysdeps/nptl/libc_start_call_main.h @@ -67,7 +67,8 @@ __libc_start_call_main (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL), result = 0; if (! atomic_decrement_and_test (&__nptl_nthreads)) /* Not much left to do but to exit the thread, not the process. */ - __exit_thread (); + while (1) + INTERNAL_SYSCALL_CALL (exit, 0); } exit (result); -- cgit v1.1