diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-15 05:07:04 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-15 05:07:04 +0000 |
commit | 7f29bb1a8d2eb5edc4e3ea50223370dd4ba4a96c (patch) | |
tree | 8d7850f7f6d786d8f4e7dfab0e4695e3ffef2938 /src/sig_handlers.c | |
parent | df3af7d4f121be6264c0ce307f4a75e844d7282c (diff) | |
download | mpd-7f29bb1a8d2eb5edc4e3ea50223370dd4ba4a96c.tar.gz mpd-7f29bb1a8d2eb5edc4e3ea50223370dd4ba4a96c.tar.xz mpd-7f29bb1a8d2eb5edc4e3ea50223370dd4ba4a96c.zip |
log cycling and a few cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@772 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/sig_handlers.c')
-rw-r--r-- | src/sig_handlers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sig_handlers.c b/src/sig_handlers.c index 06f7bf765..c3f1d787b 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 <signal.h> #include <sys/types.h> @@ -44,6 +45,8 @@ int handlePendingSignals() { readDirectoryDB(); incrPlaylistVersion(); } + if(myfprintfCloseAndOpenLogFile()<0) return COMMAND_RETURN_KILL; + playerCycleLogFiles(); } return 0; |