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 | |
parent | 642213e043040b2e3b5aad936986195491107e34 (diff) | |
download | glibc-eaa53d0f77691e37aa6f22e18205a2ba019e1a1c.zip glibc-eaa53d0f77691e37aa6f22e18205a2ba019e1a1c.tar.gz glibc-eaa53d0f77691e37aa6f22e18205a2ba019e1a1c.tar.bz2 |
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')
-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 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); |