From 4ad8ebba7e067f9af3feaf6d2afacf7212877d50 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 26 Jun 2001 13:49:51 +0000 Subject: [PATCH] "log rotate" signal added git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1560 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- docs/signals.txt | 1 + src/core/log.c | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/signals.txt b/docs/signals.txt index 075b85b1..0866baba 100644 --- a/docs/signals.txt +++ b/docs/signals.txt @@ -47,6 +47,7 @@ log.c: "log locked", LOG_REC "log started", LOG_REC "log stopped", LOG_REC + "log rotate", LOG_REC "log written", LOG_REC, char *line modules.c: diff --git a/src/core/log.c b/src/core/log.c index 368de25f..9c39962a 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -175,6 +175,7 @@ static void log_rotate_check(LOG_REC *log) new_fname = log_filename(log); if (strcmp(new_fname, log->real_fname) != 0) { /* rotate log */ + signal_emit("log rotate", 1, log); log_stop_logging(log); log_start_logging(log); }