diff options
author | Colin Watson <cjwatson@debian.org> | 2016-08-06 10:49:59 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-08-07 12:18:58 +0100 |
commit | 477bb7636238c106f8cd7c868a8c0c5eabcfb3db (patch) | |
tree | 601176af2ecf358c36b766776a86845ad7a3cd6f /log.c | |
parent | 747fac2de0d889183f67f6900194c0462c558544 (diff) | |
parent | 4c914ccd85bbf391c4dc61b85e3c178fef465e3f (diff) |
New upstream release (7.3p1).
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: log.c,v 1.46 2015/07/08 19:04:21 markus Exp $ */ | 1 | /* $OpenBSD: log.c,v 1.48 2016/07/15 05:01:58 dtucker 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 |
@@ -177,6 +177,16 @@ sigdie(const char *fmt,...) | |||
177 | _exit(1); | 177 | _exit(1); |
178 | } | 178 | } |
179 | 179 | ||
180 | void | ||
181 | logdie(const char *fmt,...) | ||
182 | { | ||
183 | va_list args; | ||
184 | |||
185 | va_start(args, fmt); | ||
186 | do_log(SYSLOG_LEVEL_INFO, fmt, args); | ||
187 | va_end(args); | ||
188 | cleanup_exit(255); | ||
189 | } | ||
180 | 190 | ||
181 | /* Log this message (information that usually should go to the log). */ | 191 | /* Log this message (information that usually should go to the log). */ |
182 | 192 | ||