mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
Don't use setlogmask() on 4.2BSD syslog machines
This commit is contained in:
2
dhcpd.c
2
dhcpd.c
@@ -94,7 +94,9 @@ int main (argc, argv, envp)
|
|||||||
#endif /* !NO_PUTENV */
|
#endif /* !NO_PUTENV */
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
|
#ifndef SYSLOG_4_2
|
||||||
setlogmask (LOG_UPTO (LOG_INFO));
|
setlogmask (LOG_UPTO (LOG_INFO));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Become a daemon... */
|
/* Become a daemon... */
|
||||||
if ((pid = fork ()) < 0)
|
if ((pid = fork ()) < 0)
|
||||||
|
@@ -94,7 +94,9 @@ int main (argc, argv, envp)
|
|||||||
#endif /* !NO_PUTENV */
|
#endif /* !NO_PUTENV */
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
|
#ifndef SYSLOG_4_2
|
||||||
setlogmask (LOG_UPTO (LOG_INFO));
|
setlogmask (LOG_UPTO (LOG_INFO));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Become a daemon... */
|
/* Become a daemon... */
|
||||||
if ((pid = fork ()) < 0)
|
if ((pid = fork ()) < 0)
|
||||||
|
Reference in New Issue
Block a user