]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
error() now logs a message simply indicating that it is exiting.
authorTed Lemon <source@isc.org>
Sat, 22 Feb 1997 08:30:13 +0000 (08:30 +0000)
committerTed Lemon <source@isc.org>
Sat, 22 Feb 1997 08:30:13 +0000 (08:30 +0000)
common/errwarn.c
errwarn.c

index 34f965a0e6961c5cc53548584f04f4016ada5d05..720822e5a0239aa396c86702515aeb384e5034bf 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 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 */
 
 #include "dhcpd.h"
@@ -80,6 +80,11 @@ void error (ANSI_DECL(char *) fmt, VA_DOTDOTDOT)
          write (2, "\n", 1);
   }
 
+  syslog (LOG_CRIT, "exiting.");
+  if (log_perror) {
+       fprintf (stderr, "dhcpd: exiting.\n");
+       fflush (stderr);
+  }
   cleanup ();
   exit (1);
 }
index 34f965a0e6961c5cc53548584f04f4016ada5d05..720822e5a0239aa396c86702515aeb384e5034bf 100644 (file)
--- a/errwarn.c
+++ b/errwarn.c
@@ -42,7 +42,7 @@
 
 #ifndef lint
 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 */
 
 #include "dhcpd.h"
@@ -80,6 +80,11 @@ void error (ANSI_DECL(char *) fmt, VA_DOTDOTDOT)
          write (2, "\n", 1);
   }
 
+  syslog (LOG_CRIT, "exiting.");
+  if (log_perror) {
+       fprintf (stderr, "dhcpd: exiting.\n");
+       fflush (stderr);
+  }
   cleanup ();
   exit (1);
 }