[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Stop multiplying logs on sighup.



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv23027/src/common

Modified Files:
	log.c log.h 
Log Message:
Stop multiplying logs on sighup.

Index: log.c
===================================================================
RCS file: /home/or/cvsroot/src/common/log.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- log.c	21 May 2004 12:38:52 -0000	1.43
+++ log.c	2 Jun 2004 19:18:37 -0000	1.44
@@ -205,6 +205,13 @@
   }
 }
 
+void mark_logs_temp(void)
+{
+  logfile_t *lf;
+  for (lf = logfiles; lf; lf = lf->next)
+    lf->is_temporary = 1;
+}
+
 /**
  * Add a log handler to send messages to <b>filename</b>. If opening
  * the logfile fails, -1 is returned and errno is set appropriately

Index: log.h
===================================================================
RCS file: /home/or/cvsroot/src/common/log.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- log.h	21 May 2004 12:30:07 -0000	1.27
+++ log.h	2 Jun 2004 19:18:37 -0000	1.28
@@ -54,6 +54,7 @@
 void reset_logs();
 void add_temp_log(void);
 void close_temp_logs(void);
+void mark_logs_temp(void);
 
 /* Outputs a message to stdout */
 void _log(int severity, const char *format, ...) CHECK_PRINTF(2,3);