Commit a9dd51a8 authored by Eric Covener's avatar Eric Covener Committed by Pauli
Browse files

aix compat fixes for ocsp.c



WCOREDUMP and vsyslog are not portable

Reviewed-by: default avatarPaul Dale <paul.dale@oracle.com>
Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5657)
parent f6add6ac
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -813,7 +813,10 @@ log_message(int level, const char *fmt, ...)
    va_start(ap, fmt);
# ifdef OCSP_DAEMON
    if (multi) {
        vsyslog(level, fmt, ap);
        char buf[1024];
        if (vsnprintf(buf, sizeof(buf), fmt, ap) > 0) {
            syslog(level, "%s", buf);
        }
        if (level >= LOG_ERR)
            ERR_print_errors_cb(print_syslog, &level);
    }
@@ -928,7 +931,10 @@ static void spawn_loop(void)
                    else if (WIFSIGNALED(status))
                        syslog(LOG_WARNING, "child process: %ld, term signal %d%s",
                               (long)fpid, WTERMSIG(status),
                               WCOREDUMP(status) ? " (core dumped)" : "");
#ifdef WCOREDUMP
                               WCOREDUMP(status) ? " (core dumped)" :
#endif
                               "");
                    sleep(1);
                }
                break;