From 0adbe5fc7271adf03674ab5b1edabaf36c26fa0b Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 13 Jul 2026 08:01:15 +0100 Subject: [PATCH] Add 2 seconds for messages to be output before _Exit() on die() to allow messages to be output... --- utilities/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utilities/debug.c b/utilities/debug.c index 75326052..5a97b727 100644 --- a/utilities/debug.c +++ b/utilities/debug.c @@ -24,6 +24,7 @@ SOFTWARE. #include "debug.h" #include // for isprint() +#include // for usleep() #include #include #include @@ -143,6 +144,7 @@ void _die(const char *filename, const int linenumber, const char *format, ...) { // syslog(LOG_ERR, "%s", b); fprintf(stderr, "%s\n", b); pthread_setcancelstate(oldState, NULL); + usleep(2000000); //allow some time for printing of message _Exit(EXIT_FAILURE); }