diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/log.c | 7 | ||||
-rw-r--r-- | src/common/log.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c index f3c7281b1..3e55501dd 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -205,6 +205,13 @@ void close_temp_logs(void) } } +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 diff --git a/src/common/log.h b/src/common/log.h index 33e42b7d4..7ce5ceee0 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -54,6 +54,7 @@ void close_logs(); 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); |