[PATCH] Log message before aborting
Mike Crute
mike at crute.us
Tue Jan 10 04:35:57 CET 2023
Signed-off-by: Mike Crute <mike at crute.us>
---
This is a really tiny patch but the behavior of aborting was very
confusing to one of the Alpine Linux users and caused them to spend a
lot of time creating and installing debug builds and tracing the BIRD
process only to find a configuration error. Hopefully this patch will
help to prevent such issues for future users while still providing
proper debug info for developers.
Original Alpine Issue:
https://gitlab.alpinelinux.org/alpine/aports/-/issues/14408
Thanks!
sysdep/unix/io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 810e782d..57bed092 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -2129,7 +2129,7 @@ watchdog_sigalrm(int sig UNUSED)
io_update_time();
/* We want core dump */
- abort();
+ bug("Watchdog timer timed out.");
}
static inline void
--
2.39.0
More information about the Bird-users
mailing list