diff options
Diffstat (limited to 'crypto/openssh/log.c')
-rw-r--r-- | crypto/openssh/log.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/openssh/log.c b/crypto/openssh/log.c index 0c4d5123a63b..36d2f54437a0 100644 --- a/crypto/openssh/log.c +++ b/crypto/openssh/log.c @@ -127,6 +127,20 @@ error(const char *fmt,...) va_end(args); } +void +sigdie(const char *fmt,...) +{ + va_list args; + +#ifdef DO_LOG_SAFE_IN_SIGHAND + va_start(args, fmt); + do_log(SYSLOG_LEVEL_FATAL, fmt, args); + va_end(args); +#endif + _exit(1); +} + + /* Log this message (information that usually should go to the log). */ void |