diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-06-22 10:07:17 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-06-22 10:07:17 +0000 |
commit | 2bb3a478822aa4da8d3eae42270b143a968eeed2 (patch) | |
tree | 6ad08a59a2a1cd6a8c24fd9683c5f8df32f5054c /init | |
parent | 0abf6fe928b367494d922b061099d53bf23c20dc (diff) | |
download | busybox-w32-2bb3a478822aa4da8d3eae42270b143a968eeed2.tar.gz busybox-w32-2bb3a478822aa4da8d3eae42270b143a968eeed2.tar.bz2 busybox-w32-2bb3a478822aa4da8d3eae42270b143a968eeed2.zip |
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
git-svn-id: svn://busybox.net/trunk/busybox@8913 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, ...) | |||
229 | /* Log the message to syslogd */ | 229 | /* Log the message to syslogd */ |
230 | if (device & LOG) { | 230 | if (device & LOG) { |
231 | /* don`t out "\r\n" */ | 231 | /* don`t out "\r\n" */ |
232 | syslog_msg(LOG_DAEMON, LOG_INFO, msg + 1); | 232 | openlog(bb_applet_name, 0, LOG_DAEMON); |
233 | syslog(LOG_INFO, "%s", msg); | ||
234 | closelog(); | ||
233 | } | 235 | } |
234 | 236 | ||
235 | msg[l++] = '\n'; | 237 | msg[l++] = '\n'; |