diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-11-16 15:12:43 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-16 15:12:43 -0500 |
| commit | 23961e75b99589bcb2034ac286f39959b43756f8 (patch) | |
| tree | 10ef3d4cdfacc209105032c24eec388b7bd8f3fa /lib/sigevent.c | |
| parent | e5c317bcfac563551bab70ce16210deb0f73b027 (diff) | |
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 <sharpd@nvidia.com>
Diffstat (limited to 'lib/sigevent.c')
| -rw-r--r-- | lib/sigevent.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |
