From 36adca81f54d9479a440865acd29fc2fbcfbaf1d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 22 Jun 2004 10:07:17 +0000 Subject: Patch from Bastian Blank: On Sat, Jun 19, 2004 at 10:57:37PM +0200, Bastian Blank wrote: > The following patch changes klogd to use openlog/syslog themself > instead of calling syslog_msg which always calls the triple > openlog/syslog/closelog. Updated patch: get rid of syslog_msg entirely. Request from Erik Andersen. Bastian --- init/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index 588e4e75c..11ebc6bf9 100644 --- a/init/init.c +++ b/init/init.c @@ -229,7 +229,9 @@ static void message(int device, const char *fmt, ...) /* Log the message to syslogd */ if (device & LOG) { /* don`t out "\r\n" */ - syslog_msg(LOG_DAEMON, LOG_INFO, msg + 1); + openlog(bb_applet_name, 0, LOG_DAEMON); + syslog(LOG_INFO, "%s", msg); + closelog(); } msg[l++] = '\n'; -- cgit v1.2.3