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
This commit is contained in:
@ -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';
|
||||
|
Reference in New Issue
Block a user