[Sysfence-commit] sysfence exit.c,1.6,1.7
Status: Alpha
Brought to you by:
emes
|
From: Michal S. <em...@us...> - 2004-05-26 04:08:28
|
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); } |