diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-05-27 09:11:10 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-04 09:52:28 -0300 |
commit | eaa53d0f77691e37aa6f22e18205a2ba019e1a1c (patch) | |
tree | 7f9445d151b654a571af34c638564875030faf85 /sysdeps/nptl/libc_start_call_main.h | |
parent | 642213e043040b2e3b5aad936986195491107e34 (diff) | |
download | glibc-eaa53d0f77691e37aa6f22e18205a2ba019e1a1c.tar.gz glibc-eaa53d0f77691e37aa6f22e18205a2ba019e1a1c.tar.xz glibc-eaa53d0f77691e37aa6f22e18205a2ba019e1a1c.zip |
nptl: Remove exit-thread.h
No function change. The code is used only for Linux, besides being included in generic code.
Diffstat (limited to 'sysdeps/nptl/libc_start_call_main.h')
-rw-r--r-- | sysdeps/nptl/libc_start_call_main.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/nptl/libc_start_call_main.h b/sysdeps/nptl/libc_start_call_main.h index c579c65f78..b56bf34325 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); |