From 356b3480232d1a8f689c6c275e45c2a4c68efb30 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 28 Mar 2013 10:38:37 -0700 Subject: Never call syslog in __libc_message. --- sysdeps/posix/libc_fatal.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c index afa1b816c3..5071df15b4 100644 --- a/sysdeps/posix/libc_fatal.c +++ b/sysdeps/posix/libc_fatal.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include @@ -68,11 +67,9 @@ void __libc_message (int do_abort, const char *fmt, ...) { va_list ap; - va_list ap_copy; int fd = -1; va_start (ap, fmt); - va_copy (ap_copy, ap); #ifdef FATAL_PREPARE FATAL_PREPARE; @@ -170,12 +167,6 @@ __libc_message (int do_abort, const char *fmt, ...) va_end (ap); - /* If we had no success writing the message, use syslog. */ - if (! written) - vsyslog (LOG_ERR, fmt, ap_copy); - - va_end (ap_copy); - if (do_abort) { BEFORE_ABORT (do_abort, written, fd); -- cgit v1.2.3