This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch roland/libc_fatal-no-syslog created. glibc-2.17-441-g6e260be


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, roland/libc_fatal-no-syslog has been created
        at  6e260bedeb18e1a64ab2b52b08d193d5f1c62334 (commit)

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6e260bedeb18e1a64ab2b52b08d193d5f1c62334

commit 6e260bedeb18e1a64ab2b52b08d193d5f1c62334
Author: Roland McGrath <roland@hack.frob.com>
Date:   Tue Mar 19 16:39:31 2013 -0700

    Do not call syslog in __libc_message.

diff --git a/ChangeLog b/ChangeLog
index d719501..72e6498 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-19  Roland McGrath  <roland@hack.frob.com>
+
+	* sysdeps/unix/sysv/linux/libc_fatal.c: Don't include <sys/syslog.h>.
+	(__libc_message): Never call vsyslog.
+
 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
 
 	* math/k_casinhf.c (__kernel_casinhf): Consistently use float
diff --git a/sysdeps/unix/sysv/linux/libc_fatal.c b/sysdeps/unix/sysv/linux/libc_fatal.c
index bac4b87..2da83cb 100644
--- a/sysdeps/unix/sysv/linux/libc_fatal.c
+++ b/sysdeps/unix/sysv/linux/libc_fatal.c
@@ -28,7 +28,6 @@
 #include <sysdep.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <sys/syslog.h>
 #include <execinfo.h>
 
 /* Abort with an error message.  */
@@ -51,11 +50,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;
@@ -161,12 +158,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)
     {
       if (do_abort > 1 && written)

-----------------------------------------------------------------------


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]