This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch roland/libc_fatal-no-syslog created. glibc-2.17-441-g5d99d69
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 19 Mar 2013 23:37:16 -0000
- Subject: GNU C Library master sources branch roland/libc_fatal-no-syslog created. glibc-2.17-441-g5d99d69
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 5d99d695d066e0ce0bafe348afbd205f56141eb4 (commit)
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5d99d695d066e0ce0bafe348afbd205f56141eb4
commit 5d99d695d066e0ce0bafe348afbd205f56141eb4
Author: Roland McGrath <roland@hack.frob.com>
Date: Tue Mar 19 16:36:52 2013 -0700
Do not call syslog in __libc_fatal.
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