aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c7
1 files changed, 7 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