Fix (hopefully) bug 976. Need more thorough audit.

Restore erroneously removed FEATURE_UDHCP_SYSLOG.
This commit is contained in:
Denis Vlasenko
2006-09-07 17:05:44 +00:00
parent a9801658ee
commit 239369b368
5 changed files with 27 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ void udhcp_background(const char *pidfile)
#endif /* __uClinux__ */
}
void udhcp_start_log_and_pid(const char *client_server, const char *pidfile)
void udhcp_start_log_and_pid(const char *pidfile)
{
int pid_fd;
@@ -82,9 +82,9 @@ void udhcp_start_log_and_pid(const char *client_server, const char *pidfile)
setlinebuf(stdout);
if (ENABLE_FEATURE_UDHCP_SYSLOG) {
openlog(client_server, LOG_PID, LOG_LOCAL0);
openlog(bb_applet_name, LOG_PID, LOG_LOCAL0);
logmode |= LOGMODE_SYSLOG;
}
bb_info_msg("%s (v%s) started", client_server, BB_VER);
bb_info_msg("%s (v%s) started", bb_applet_name, BB_VER);
}