mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
"log rotate" signal added
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1560 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3d2f2704c0
commit
4ad8ebba7e
@ -47,6 +47,7 @@ log.c:
|
|||||||
"log locked", LOG_REC
|
"log locked", LOG_REC
|
||||||
"log started", LOG_REC
|
"log started", LOG_REC
|
||||||
"log stopped", LOG_REC
|
"log stopped", LOG_REC
|
||||||
|
"log rotate", LOG_REC
|
||||||
"log written", LOG_REC, char *line
|
"log written", LOG_REC, char *line
|
||||||
|
|
||||||
modules.c:
|
modules.c:
|
||||||
|
@ -175,6 +175,7 @@ static void log_rotate_check(LOG_REC *log)
|
|||||||
new_fname = log_filename(log);
|
new_fname = log_filename(log);
|
||||||
if (strcmp(new_fname, log->real_fname) != 0) {
|
if (strcmp(new_fname, log->real_fname) != 0) {
|
||||||
/* rotate log */
|
/* rotate log */
|
||||||
|
signal_emit("log rotate", 1, log);
|
||||||
log_stop_logging(log);
|
log_stop_logging(log);
|
||||||
log_start_logging(log);
|
log_start_logging(log);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user