File tree 1 file changed +4
-21
lines changed
1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -524,8 +524,6 @@ static void flb_signal_exit(int signal)
524
524
char s [] = "[engine] caught signal (" ;
525
525
time_t now ;
526
526
struct tm * cur ;
527
- flb_ctx_t * ctx = flb_context_get ();
528
- struct flb_cf * cf_opts = flb_cf_context_get ();
529
527
530
528
now = time (NULL );
531
529
cur = localtime (& now );
@@ -550,25 +548,6 @@ static void flb_signal_exit(int signal)
550
548
flb_print_signal (SIGTERM );
551
549
flb_print_signal (SIGSEGV );
552
550
};
553
-
554
- /* Signal handlers */
555
- /* SIGSEGV is not handled here to preserve stacktrace */
556
- switch (signal ) {
557
- case SIGINT :
558
- case SIGTERM :
559
- #ifndef FLB_SYSTEM_WINDOWS
560
- case SIGQUIT :
561
- case SIGHUP :
562
- #endif
563
- if (cf_opts != NULL ) {
564
- flb_cf_destroy (cf_opts );
565
- }
566
- flb_stop (ctx );
567
- flb_destroy (ctx );
568
- _exit (EXIT_SUCCESS );
569
- default :
570
- break ;
571
- }
572
551
}
573
552
574
553
static void flb_signal_handler (int signal )
@@ -1359,6 +1338,10 @@ int flb_main(int argc, char **argv)
1359
1338
if (trace_output ) {
1360
1339
flb_free (trace_output );
1361
1340
}
1341
+ if (trace_props != NULL ) {
1342
+ flb_kv_release (trace_props );
1343
+ flb_free (trace_props );
1344
+ }
1362
1345
#endif
1363
1346
1364
1347
flb_stop (ctx );
You can’t perform that action at this time.
0 commit comments