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.
This commit is contained in:
@@ -18,9 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sig_handlers.h"
|
#include "sig_handlers.h"
|
||||||
#include "playlist.h"
|
|
||||||
#include "database.h"
|
|
||||||
#include "update.h"
|
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "signal_check.h"
|
#include "signal_check.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
@@ -40,10 +37,6 @@ int handlePendingSignals(void)
|
|||||||
if (signal_is_pending(SIGHUP)) {
|
if (signal_is_pending(SIGHUP)) {
|
||||||
DEBUG("got SIGHUP, rereading DB\n");
|
DEBUG("got SIGHUP, rereading DB\n");
|
||||||
signal_clear(SIGHUP);
|
signal_clear(SIGHUP);
|
||||||
if (!isUpdatingDB()) {
|
|
||||||
db_load();
|
|
||||||
playlistVersionChange();
|
|
||||||
}
|
|
||||||
if (cycle_log_files() < 0)
|
if (cycle_log_files() < 0)
|
||||||
return COMMAND_RETURN_KILL;
|
return COMMAND_RETURN_KILL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user