summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/log.c b/log.c
index c09786ade..07f866230 100644
--- a/log.c
+++ b/log.c
@@ -131,6 +131,18 @@ error(const char *fmt,...)
131 va_end(args); 131 va_end(args);
132} 132}
133 133
134void
135sigdie(const char *fmt,...)
136{
137 va_list args;
138
139 va_start(args, fmt);
140 do_log(SYSLOG_LEVEL_FATAL, fmt, args);
141 va_end(args);
142 _exit(1);
143}
144
145
134/* Log this message (information that usually should go to the log). */ 146/* Log this message (information that usually should go to the log). */
135 147
136void 148void