Skip to content

Commit

Permalink
log: Fix log reopening on SIGUSR1
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and villesavolainen committed Jan 30, 2018
1 parent ce9f50b commit c2ece29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/log/main.c
Expand Up @@ -4,7 +4,7 @@
#include "lib-signals.h"
#include "restrict-access.h"
#include "master-interface.h"
#include "master-service.h"
#include "master-service-private.h"
#include "master-service-settings.h"
#include "log-error-buffer.h"
#include "log-connection.h"
Expand All @@ -18,6 +18,7 @@ static struct log_error_buffer *errorbuf;
static void
sig_reopen_logs(const siginfo_t *si ATTR_UNUSED, void *context ATTR_UNUSED)
{
master_service->log_initialized = FALSE;
master_service_init_log(master_service, "log: ");
}

Expand Down

0 comments on commit c2ece29

Please sign in to comment.