diff options
| author | Alexander Kabaev <kan@FreeBSD.org> | 2003-05-30 00:21:52 +0000 |
|---|---|---|
| committer | Alexander Kabaev <kan@FreeBSD.org> | 2003-05-30 00:21:52 +0000 |
| commit | 84d55c7fad83f4fa1330cc8c2206da8ebd0b300d (patch) | |
| tree | 94d7f73e2932ac623f1590991875a38731aca104 /lib/libpthread/thread/thr_exit.c | |
| parent | 43dd76d2428f29c23526d500d7e28d7dfce6fa49 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
| -rw-r--r-- | lib/libpthread/thread/thr_exit.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c index 22f187b98a43..6dbef072a50c 100644 --- a/lib/libpthread/thread/thr_exit.c +++ b/lib/libpthread/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(); } |
