summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-01-12 17:40:53 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2023-01-12 17:40:53 +0100
commit64a2b7aaa303be0b407508747bfc96c1c656f1e2 (patch)
tree29953b35070a4906ef3f6731a152811236376ddb /sysdep/unix/io.c
parente20bef69ccc4a85ef62359ee539c9db2dbe09127 (diff)
Log message before aborting
Log message before aborting due to watchdog timeout. We have to use async-safe write to debug log, as it is done in signal handler. Minor changes from committer.
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 810e782d..e131ca41 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -2128,6 +2128,8 @@ watchdog_sigalrm(int sig UNUSED)
config->latency_limit = 0xffffffff;
io_update_time();
+ debug_safe("Watchdog timer timed out\n");
+
/* We want core dump */
abort();
}