From 7f29bb1a8d2eb5edc4e3ea50223370dd4ba4a96c Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 15 Apr 2004 05:07:04 +0000 Subject: log cycling and a few cleanups git-svn-id: https://svn.musicpd.org/mpd/trunk@772 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/sig_handlers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sig_handlers.c') diff --git a/src/sig_handlers.c b/src/sig_handlers.c index 06f7bf76..c3f1d787 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -23,6 +23,7 @@ #include "command.h" #include "signal_check.h" #include "log.h" +#include "player.h" #include #include @@ -44,6 +45,8 @@ int handlePendingSignals() { readDirectoryDB(); incrPlaylistVersion(); } + if(myfprintfCloseAndOpenLogFile()<0) return COMMAND_RETURN_KILL; + playerCycleLogFiles(); } return 0; -- cgit v1.2.3