diff options
author | kan <kan@FreeBSD.org> | 2003-05-30 00:21:52 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-05-30 00:21:52 +0000 |
commit | a22cad65ccb9cfd81c057db83cc2c7c2cb5ae79d (patch) | |
tree | 94d7f73e2932ac623f1590991875a38731aca104 /lib/libkse/thread/thr_exit.c | |
parent | 51dd2dd2b3fe2cc5a81d2a41ffc4166698a4b22f (diff) | |
download | FreeBSD-src-a22cad65ccb9cfd81c057db83cc2c7c2cb5ae79d.zip FreeBSD-src-a22cad65ccb9cfd81c057db83cc2c7c2cb5ae79d.tar.gz |
Attempt to eliminate PLT relocations from rwlock aquire/release
path, making them suitable for direct use by the dynamic loader.
Register libpthread-specific locking API with rtld on startup.
This still has some rough edges with signals which should be
addresses later.
Approved by: re (scottl)
Diffstat (limited to 'lib/libkse/thread/thr_exit.c')
-rw-r--r-- | lib/libkse/thread/thr_exit.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libkse/thread/thr_exit.c b/lib/libkse/thread/thr_exit.c index 22f187b..6dbef07 100644 --- a/lib/libkse/thread/thr_exit.c +++ b/lib/libkse/thread/thr_exit.c @@ -47,16 +47,12 @@ __weak_reference(_pthread_exit, pthread_exit); void _thr_exit(char *fname, int lineno, char *msg) { - char s[256]; - /* Prepare an error message string: */ - snprintf(s, sizeof(s), + /* Write an error message to the standard error file descriptor: */ + _thread_printf(2, "Fatal error '%s' at line %d in file %s (errno = %d)\n", msg, lineno, fname, errno); - /* Write the string to the standard error file descriptor: */ - __sys_write(2, s, strlen(s)); - abort(); } |