=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/log.c,v retrieving revision 1.29 retrieving revision 1.29.8.1 diff -u -r1.29 -r1.29.8.1 --- src/usr.bin/ssh/log.c 2003/09/23 20:17:11 1.29 +++ src/usr.bin/ssh/log.c 2006/10/06 03:19:32 1.29.8.1 @@ -1,3 +1,4 @@ +/* $OpenBSD: log.c,v 1.29.8.1 2006/10/06 03:19:32 brad Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -33,15 +34,19 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "includes.h" -RCSID("$OpenBSD: log.c,v 1.29 2003/09/23 20:17:11 markus Exp $"); +#include -#include "log.h" -#include "xmalloc.h" - +#include +#include +#include +#include #include +#include #include +#include "xmalloc.h" +#include "log.h" + static LogLevel log_level = SYSLOG_LEVEL_INFO; static int log_on_stderr = 1; static int log_facility = LOG_AUTH; @@ -121,6 +126,18 @@ do_log(SYSLOG_LEVEL_ERROR, fmt, args); va_end(args); } + +void +sigdie(const char *fmt,...) +{ + va_list args; + + va_start(args, fmt); + do_log(SYSLOG_LEVEL_FATAL, fmt, args); + va_end(args); + _exit(1); +} + /* Log this message (information that usually should go to the log). */