Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/fluent-bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ flb_ctx_t *ctx;
struct flb_config *config;
volatile sig_atomic_t exit_signal = 0;
volatile sig_atomic_t flb_bin_restarting = FLB_RELOAD_IDLE;
volatile sig_atomic_t dump_requested = 0;

#ifdef FLB_HAVE_LIBBACKTRACE
struct flb_stacktrace flb_st;
Expand Down Expand Up @@ -636,7 +637,7 @@ static void flb_signal_handler(int signal)
abort();
#ifndef FLB_SYSTEM_WINDOWS
case SIGCONT:
flb_dump(ctx->config);
dump_requested = 1;
break;
#ifndef FLB_HAVE_STATIC_CONF
case SIGHUP:
Expand Down Expand Up @@ -1491,6 +1492,12 @@ static int flb_main_run(int argc, char **argv)
#ifdef FLB_SYSTEM_WINDOWS
flb_console_handler_set_ctx(ctx, cf_opts);
#endif
if (dump_requested &&
ctx != NULL && ctx->config != NULL) {
dump_requested = 0;
flb_dump(ctx->config);
}

if (flb_bin_restarting == FLB_RELOAD_IN_PROGRESS) {
if (supervisor_reload_notified == FLB_FALSE &&
ctx != NULL && ctx->config != NULL) {
Expand Down
Loading