mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-29 13:28:14 +00:00
error() now logs a message simply indicating that it is exiting.
This commit is contained in:
parent
4660b5193b
commit
0c56f332ea
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: errwarn.c,v 1.12 1996/11/08 20:07:31 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: errwarn.c,v 1.13 1997/02/22 08:30:13 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@ -80,6 +80,11 @@ void error (ANSI_DECL(char *) fmt, VA_DOTDOTDOT)
|
|||||||
write (2, "\n", 1);
|
write (2, "\n", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
syslog (LOG_CRIT, "exiting.");
|
||||||
|
if (log_perror) {
|
||||||
|
fprintf (stderr, "dhcpd: exiting.\n");
|
||||||
|
fflush (stderr);
|
||||||
|
}
|
||||||
cleanup ();
|
cleanup ();
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: errwarn.c,v 1.12 1996/11/08 20:07:31 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: errwarn.c,v 1.13 1997/02/22 08:30:13 mellon Exp $ Copyright (c) 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@ -80,6 +80,11 @@ void error (ANSI_DECL(char *) fmt, VA_DOTDOTDOT)
|
|||||||
write (2, "\n", 1);
|
write (2, "\n", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
syslog (LOG_CRIT, "exiting.");
|
||||||
|
if (log_perror) {
|
||||||
|
fprintf (stderr, "dhcpd: exiting.\n");
|
||||||
|
fflush (stderr);
|
||||||
|
}
|
||||||
cleanup ();
|
cleanup ();
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user