From: Pauli Date: Mon, 19 Mar 2018 21:17:32 +0000 (+1000) Subject: Don't call strsignal, just print the signal number. X-Git-Tag: OpenSSL_1_1_1-pre4~77 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aed3df20c105b6555ea2aeff559f2fab4ad4cefc;p=oweals%2Fopenssl.git Don't call strsignal, just print the signal number. The strsignal call is not supported by some machines, so avoid its use. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5658) --- diff --git a/apps/ocsp.c b/apps/ocsp.c index 015f4d3d1f..3c5534af0e 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -882,7 +882,6 @@ static void noteterm (int sig) */ static void spawn_loop(void) { - const char *signame; pid_t *kidpids = NULL; int status; int procs = 0; @@ -978,9 +977,7 @@ static void spawn_loop(void) } /* The loop above can only break on termsig */ - signame = strsignal(termsig); - syslog(LOG_INFO, "terminating on signal: %s(%d)", - signame ? signame : "", termsig); + syslog(LOG_INFO, "terminating on signal: %d", termsig); killall(0, kidpids); } # endif