diff options
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: log.c,v 1.38 2006/08/03 03:34:42 deraadt Exp $ */ | 1 | /* $OpenBSD: log.c,v 1.39 2006/08/18 09:13:25 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -137,6 +137,18 @@ error(const char *fmt,...) | |||
137 | va_end(args); | 137 | va_end(args); |
138 | } | 138 | } |
139 | 139 | ||
140 | void | ||
141 | sigdie(const char *fmt,...) | ||
142 | { | ||
143 | va_list args; | ||
144 | |||
145 | va_start(args, fmt); | ||
146 | do_log(SYSLOG_LEVEL_FATAL, fmt, args); | ||
147 | va_end(args); | ||
148 | _exit(1); | ||
149 | } | ||
150 | |||
151 | |||
140 | /* Log this message (information that usually should go to the log). */ | 152 | /* Log this message (information that usually should go to the log). */ |
141 | 153 | ||
142 | void | 154 | void |