]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Never call syslog in __libc_message.
authorRoland McGrath <roland@hack.frob.com>
Thu, 28 Mar 2013 17:38:37 +0000 (10:38 -0700)
committerRoland McGrath <roland@hack.frob.com>
Thu, 28 Mar 2013 17:38:37 +0000 (10:38 -0700)
ChangeLog
sysdeps/posix/libc_fatal.c

index 183bedfae8799d26a52a2930c3b15721cf4790d2..f21bf51e1f4fd4bc18442743835880f3e712703c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-28  Roland McGrath  <roland@hack.frob.com>
+
+       * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
+       (__libc_message): Never call vsyslog.
+
 2013-03-28  Alan Modra  <amodra@gmail.com>
 
        * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
index afa1b816c309d1ad2b17e94446e62e17de57ee00..5071df15b460148b38783228c124a782b79d48d9 100644 (file)
@@ -29,7 +29,6 @@
 #include <sysdep.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <sys/syslog.h>
 #include <sys/uio.h>
 #include <not-cancel.h>
 
@@ -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);