]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: When aborting log data 7533/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 16 Nov 2020 20:12:43 +0000 (15:12 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 16 Nov 2020 20:12:43 +0000 (15:12 -0500)
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 <sharpd@nvidia.com>
lib/sigevent.c

index de9e1f54100ad28a57a2ff5dd29aa9d061e9b925..8d583096f67328e8bc1014e8715b5ce85c3cb821 100644 (file)
@@ -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();
 }