about summary refs log tree commit diff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-05-27 09:11:10 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-06-04 09:52:28 -0300
commiteaa53d0f77691e37aa6f22e18205a2ba019e1a1c (patch)
tree7f9445d151b654a571af34c638564875030faf85 /nptl/pthread_create.c
parent642213e043040b2e3b5aad936986195491107e34 (diff)
downloadglibc-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 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 2d2535b07d..52d6738f7f 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -30,7 +30,6 @@
 #include <libc-internal.h>
 #include <resolv.h>
 #include <kernel-features.h>
-#include <exit-thread.h>
 #include <default-sched.h>
 #include <futex-internal.h>
 #include <tls-setup.h>
@@ -575,7 +574,8 @@ start_thread (void *arg)
 
      The exit code is zero since in case all threads exit by calling
      'pthread_exit' the exit status must be 0 (zero).  */
-  __exit_thread ();
+  while (1)
+    INTERNAL_SYSCALL_CALL (exit, 0);
 
   /* NOTREACHED */
 }