From: Donald Sharp Date: Mon, 16 Nov 2020 20:12:43 +0000 (-0500) Subject: lib: When aborting log data X-Git-Tag: base_7.6~277^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=23961e75b99589bcb2034ac286f39959b43756f8;p=mirror%2Ffrr.git 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 --- 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(); }