summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-08-19 08:38:23 +1000
committerDamien Miller <djm@mindrot.org>2006-08-19 08:38:23 +1000
commitbb59814cd644f78e82df07d820ed00fa7a25e68a (patch)
tree5b67f5a6e3d4a54116f77cdaf972f4288e74c83f /log.c
parent3d2d6e90e4c6f46347b7212401198babe49f2c50 (diff)
- (djm) Disable sigdie() for platforms that cannot safely syslog inside
a signal handler (basically all of them, excepting OpenBSD); ok dtucker@
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/log.c b/log.c
index 32db0cb5..0ce4d85f 100644
--- a/log.c
+++ b/log.c
@@ -142,9 +142,11 @@ sigdie(const char *fmt,...)
{
va_list args;
+#ifdef DO_LOG_SAFE_IN_SIGHAND
va_start(args, fmt);
do_log(SYSLOG_LEVEL_FATAL, fmt, args);
va_end(args);
+#endif
_exit(1);
}