From 23961e75b99589bcb2034ac286f39959b43756f8 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 16 Nov 2020 15:12:43 -0500 Subject: [PATCH] lib: When aborting log data When a FRR process dies due to SIGILL/SIGABORT/etc attempt to drain the log buffer. This code change is capturing some missing logs that were not part of the log file on a crash. Signed-off-by: Donald Sharp --- lib/sigevent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sigevent.c b/lib/sigevent.c index de9e1f5410..8d583096f6 100644 --- a/lib/sigevent.c +++ b/lib/sigevent.c @@ -250,6 +250,8 @@ core_handler(int signo, siginfo_t *siginfo, void *context) /* dump memory stats on core */ log_memstats(stderr, "core_handler"); + + zlog_tls_buffer_fini(); abort(); } -- 2.39.5