From beb349348e3df55d1d57d327fbd48fedc6073188 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Cabessa?= Date: Sun, 13 May 2012 17:16:06 +0200 Subject: [PATCH] syslog needs a valid socket path for _PATH_LOG /dev/kmsg is a character device already used for different purposes. Most distribution use /dev/log for _PATH_LOG but this path is already used by logcat. I suggest using /dev/syslog. This change was tested with busybox's syslogd. Change-Id: I75b428123c7a0b3ca4bea656ce06860f6f727dde --- libc/include/syslog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/syslog.h b/libc/include/syslog.h index d35bc79af..cb8c48cbb 100644 --- a/libc/include/syslog.h +++ b/libc/include/syslog.h @@ -98,7 +98,7 @@ struct syslog_data { #define SYSLOG_DATA_INIT {-1, 0, 0, 0, (const char *)0, LOG_USER, 0xff} -#define _PATH_LOG "/dev/kmsg" +#define _PATH_LOG "/dev/syslog" extern void closelog(void); extern void openlog(const char *, int, int); -- 2.11.0