2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Add support for broken old 4.2BSD syslog

This commit is contained in:
Ted Lemon
1996-05-17 00:28:58 +00:00
parent b610e24a96
commit 409503846d
6 changed files with 26 additions and 14 deletions

View File

@@ -54,6 +54,7 @@ TIME default_lease_time = 43200; /* 12 hours... */
TIME max_lease_time = 86400; /* 24 hours... */
u_int16_t server_port;
int log_priority;
int main (argc, argv, envp)
int argc;
@@ -72,7 +73,13 @@ int main (argc, argv, envp)
int result;
int flag;
#ifdef SYSLOG_4_2
openlog ("dhcpd", LOG_NDELAY);
log_facility = LOG_DAEMON;
#else
openlog ("dhcpd", LOG_NDELAY, LOG_DAEMON);
#endif
#ifndef DEBUG
setlogmask (LOG_UPTO (LOG_INFO));