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:
Eric Andersen
2004-06-22 10:07:17 +00:00
parent 78a5ddeff0
commit 36adca81f5
7 changed files with 22 additions and 67 deletions

View File

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