diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 19:34:05 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-30 19:34:05 +0100 |
commit | f38aaa2bb716b6089dc6345350b9c79cb458f9a3 (patch) | |
tree | 40525b3cd70c41237b25adfce3b33b9205984a93 | |
parent | a1434914a7ec13fd160cf790228592505377b093 (diff) | |
download | mpd-f38aaa2bb716b6089dc6345350b9c79cb458f9a3.tar.gz mpd-f38aaa2bb716b6089dc6345350b9c79cb458f9a3.tar.xz mpd-f38aaa2bb716b6089dc6345350b9c79cb458f9a3.zip |
sig_handlers: don't reload database on SIGHUP
The SIGHUP handler was used by the update process to make the main
process re-read the database. We don't need this anymore, since the
update takes place in a thread now.
-rw-r--r-- | src/sig_handlers.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/sig_handlers.c b/src/sig_handlers.c index d1b59b8e9..21005da45 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -18,9 +18,6 @@ */ #include "sig_handlers.h" -#include "playlist.h" -#include "database.h" -#include "update.h" #include "command.h" #include "signal_check.h" #include "log.h" @@ -40,10 +37,6 @@ int handlePendingSignals(void) if (signal_is_pending(SIGHUP)) { DEBUG("got SIGHUP, rereading DB\n"); signal_clear(SIGHUP); - if (!isUpdatingDB()) { - db_load(); - playlistVersionChange(); - } if (cycle_log_files() < 0) return COMMAND_RETURN_KILL; } |