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 32db0cb5f..0ce4d85f7 100644
--- a/log.c
+++ b/log.c
@@ -142,9 +142,11 @@ sigdie(const char *fmt,...)
142{ 142{
143 va_list args; 143 va_list args;
144 144
145#ifdef DO_LOG_SAFE_IN_SIGHAND
145 va_start(args, fmt); 146 va_start(args, fmt);
146 do_log(SYSLOG_LEVEL_FATAL, fmt, args); 147 do_log(SYSLOG_LEVEL_FATAL, fmt, args);
147 va_end(args); 148 va_end(args);
149#endif
148 _exit(1); 150 _exit(1);
149} 151}
150 152