projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Add signal handling (unix)
[privoxy.git]
/
errlog.c
diff --git
a/errlog.c
b/errlog.c
index
58a3415
..
38cab01
100644
(file)
--- a/
errlog.c
+++ b/
errlog.c
@@
-1,4
+1,4
@@
-const char errlog_rcs[] = "$Id: errlog.c,v 1.2
2 2001/11/05 23:43:05
steudten Exp $";
+const char errlog_rcs[] = "$Id: errlog.c,v 1.2
3 2001/11/07 00:02:13
steudten Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/errlog.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/errlog.c,v $
@@
-33,6
+33,11
@@
const char errlog_rcs[] = "$Id: errlog.c,v 1.22 2001/11/05 23:43:05 steudten Exp
*
* Revisions :
* $Log: errlog.c,v $
*
* Revisions :
* $Log: errlog.c,v $
+ * Revision 1.23 2001/11/07 00:02:13 steudten
+ * Add line number in error output for lineparsing for
+ * actionsfile and configfile.
+ * Special handling for CLF added.
+ *
* Revision 1.22 2001/11/05 23:43:05 steudten
* Add time+date to log files.
*
* Revision 1.22 2001/11/05 23:43:05 steudten
* Add time+date to log files.
*
@@
-156,6
+161,7
@@
const char errlog_rcs[] = "$Id: errlog.c,v 1.22 2001/11/05 23:43:05 steudten Exp
\f
#include "config.h"
\f
#include "config.h"
+#include "miscutil.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
@@
-236,6
+242,10
@@
static void fatal_error(const char * error_message)
fputs(error_message, stderr);
#endif /* defined(_WIN32) && !defined(_WIN_CONSOLE) */
fputs(error_message, stderr);
#endif /* defined(_WIN32) && !defined(_WIN_CONSOLE) */
+#if defined(unix)
+ deletePidFile();
+#endif /* unix */
+
exit(1);
}
exit(1);
}
@@
-266,6
+276,7
@@
void init_error_log(const char *prog_name, const char *logfname, int debuglevel)
if ((logfp != NULL) && (logfp != stderr))
{
if ((logfp != NULL) && (logfp != stderr))
{
+ log_error(LOG_LEVEL_INFO, "(Re-)Open logfile %s", logfname ? logfname : "none");
fclose(logfp);
}
logfp = stderr;
fclose(logfp);
}
logfp = stderr;