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 cmouse committed Nov 7, 2017
1 parent 9c04998 commit 84703c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/log/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "hostpid.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 @@ -20,6 +20,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, global_log_prefix);
}

Expand Down

0 comments on commit 84703c2

Please sign in to comment.