diff options
author | Mike Crute <mike@crute.us> | 2023-01-12 17:40:53 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-01-12 17:40:53 +0100 |
commit | 64a2b7aaa303be0b407508747bfc96c1c656f1e2 (patch) | |
tree | 29953b35070a4906ef3f6731a152811236376ddb /lib | |
parent | e20bef69ccc4a85ef62359ee539c9db2dbe09127 (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 'lib')
-rw-r--r-- | lib/birdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index 81d4908a..e03bd0b2 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -160,6 +160,7 @@ void bug(const char *msg, ...) NORET; #define L_BUG "\011" /* BIRD bugs */ void debug(const char *msg, ...); /* Printf to debug output */ +void debug_safe(const char *msg); /* Printf to debug output, async-safe */ /* Debugging */ |