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
This commit is contained in:
Cédric Cabessa 2012-05-13 17:16:06 +02:00
parent 4f05d1c758
commit beb349348e

View File

@ -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);