diff options
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -131,6 +131,18 @@ error(const char *fmt,...) | |||
131 | va_end(args); | 131 | va_end(args); |
132 | } | 132 | } |
133 | 133 | ||
134 | void | ||
135 | sigdie(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 | ||
136 | void | 148 | void |