From a96667b7f6d26e285d8aa2a36f8913cb43d90f05 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 94e5d193281..7af591323a5 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; }