Update of /cvsroot/sysfence/sysfence
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31147
Modified Files:
exit.c
Log Message:
+ bugs are reported to syslog
Index: exit.c
===================================================================
RCS file: /cvsroot/sysfence/sysfence/exit.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- exit.c 23 May 2004 20:52:22 -0000 1.6
+++ exit.c 26 May 2004 04:08:18 -0000 1.7
@@ -17,6 +17,7 @@
#include "exit.h"
#include <stdio.h>
#include <stdlib.h>
+#include <syslog.h>
char *errormessage[] =
{
@@ -55,6 +56,8 @@
(excode == EXIT_VALUE) ||
(excode == EXIT_OPTION))
fprintf (stderr, usage);
+ if (excode == EXIT_BUG)
+ syslog (LOG_DEBUG, "%s %s", errormessage[excode], details);
exit (excode);
}
|