summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/_exit.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-10-17 12:59:14 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-10-17 12:59:14 -0700
commit4a689f0b907d4a98582a9c4b7f6be811924db8ee (patch)
treefe4d0fef1868dfcc09fa1ef497ebfc22fac4d45e /libc/sysdeps/linux/common/_exit.c
parent8b7834d4008d10d8763d18b25580a4607a5e6607 (diff)
some tweaks under libc/ needed for nptl
* updated kernel-features.h * system is provided by pt-system with nptl * _exit should do exit_group with nptl * tsd tls ptr in libc * rt_sigwaitinfo impl added Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/common/_exit.c')
-rw-r--r--libc/sysdeps/linux/common/_exit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/_exit.c b/libc/sysdeps/linux/common/_exit.c
index fbeed0d8a..a36927d0c 100644
--- a/libc/sysdeps/linux/common/_exit.c
+++ b/libc/sysdeps/linux/common/_exit.c
@@ -12,12 +12,22 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/syscall.h>
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+#include <sysdep.h>
+#endif
void attribute_noreturn _exit(int status)
{
/* The loop is added only to keep gcc happy. */
while(1)
+ {
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+# ifdef __NR_exit_group
+ INLINE_SYSCALL(exit_group, 1, status);
+# endif
+#endif
INLINE_SYSCALL(exit, 1, status);
+ }
}
libc_hidden_def(_exit)