From 22f25a9e4feddbc093ae01cd53bdda3c2c3a82e9 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Fri, 15 Jan 2021 20:39:45 +0000 Subject: Print stack trace on assert() failure or when calling fatal_error() Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use. --- reaper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'reaper.c') diff --git a/reaper.c b/reaper.c index 9d98854e..d2b27986 100644 --- a/reaper.c +++ b/reaper.c @@ -5,11 +5,12 @@ #include #include #include +#include #define LOG_MODULE "reaper" #define LOG_ENABLE_DBG 0 #include "log.h" -#include "tllist.h" +#include "debug.h" struct child { pid_t pid; -- cgit v1.3