From 85697d53cf3f97d0794d0c8815ea291aa8daaa5c Mon Sep 17 00:00:00 2001 From: Bryce Gibson Date: Fri, 9 Jun 2023 10:22:17 +1000 Subject: [PATCH] config: fix compilation with `FLB_HAVE_STATIC_CONF` Fixes the following compilation error: ``` /tmp/fluent-bit/src/fluent-bit.c:607:10: error: label at end of compound statement case SIGHUP: ^~~~~~ ``` Signed-off-by: Bryce Gibson --- src/fluent-bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fluent-bit.c b/src/fluent-bit.c index 96fc7ab0d33..4b4b887ee7c 100644 --- a/src/fluent-bit.c +++ b/src/fluent-bit.c @@ -604,8 +604,8 @@ static void flb_signal_handler(int signal) case SIGCONT: flb_dump(ctx->config); break; - case SIGHUP: #ifndef FLB_HAVE_STATIC_CONF + case SIGHUP: if (flb_bin_restarting == FLB_RELOAD_IDLE) { flb_bin_restarting = FLB_RELOAD_IN_PROGRESS; /* reload by using same config files/path */