From e0db65176fa88b9497cbd6362b24e3225382bfb6 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 13 May 2014 09:49:20 -0700 Subject: Clean up __exit_thread. --- csu/libc-start.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'csu') diff --git a/csu/libc-start.c b/csu/libc-start.c index d571a1a..138418a 100644 --- a/csu/libc-start.c +++ b/csu/libc-start.c @@ -20,6 +20,7 @@ #include #include #include +#include extern void __libc_init_first (int argc, char **argv, char **envp); #ifndef SHARED @@ -312,7 +313,7 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL), if (! atomic_decrement_and_test (ptr)) /* Not much left to do but to exit the thread, not the process. */ - __exit_thread (0); + __exit_thread (); } #else /* Nothing fancy, just call the function. */ -- cgit v1.1