summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_exit.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-01-29 03:24:23 +0000
committerdeischen <deischen@FreeBSD.org>2001-01-29 03:24:23 +0000
commitc3dd7e380ee3ca227730ab6a8daa4e35ad4f004e (patch)
tree7ae1ada95686efa301d58e63fe3c182ea5e71404 /lib/libpthread/thread/thr_exit.c
parentca55abf319c2f815cb2c84655b25482829c1646d (diff)
downloadFreeBSD-src-c3dd7e380ee3ca227730ab6a8daa4e35ad4f004e.zip
FreeBSD-src-c3dd7e380ee3ca227730ab6a8daa4e35ad4f004e.tar.gz
_exit in libc is now __sys_exit not __sys__exit.
Add another check for thread library initialization (jdp, we really need a way to get _thread_init called at program start before any constructors are run).
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
-rw-r--r--lib/libpthread/thread/thr_exit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c
index 42bf025..169aa4f 100644
--- a/lib/libpthread/thread/thr_exit.c
+++ b/lib/libpthread/thread/thr_exit.c
@@ -43,10 +43,9 @@
#define FLAGS_IN_SCHEDQ \
(PTHREAD_FLAGS_IN_PRIOQ|PTHREAD_FLAGS_IN_WAITQ|PTHREAD_FLAGS_IN_WORKQ)
-#pragma weak _exit=__exit
#pragma weak pthread_exit=_pthread_exit
-void __exit(int status)
+void _exit(int status)
{
int flags;
int i;
@@ -79,7 +78,7 @@ void __exit(int status)
}
/* Call the _exit syscall: */
- __sys__exit(status);
+ __sys_exit(status);
}
void
@@ -104,7 +103,7 @@ _thread_exit(char *fname, int lineno, char *string)
#if defined(_PTHREADS_INVARIANTS)
abort();
#else
- _exit(1);
+ __sys_exit(1);
#endif
}
OpenPOWER on IntegriCloud