summaryrefslogtreecommitdiffstats
path: root/apps/ocsp.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2018-03-20 07:17:32 +1000
committerPauli <paul.dale@oracle.com>2018-03-22 09:42:44 +1000
commitaed3df20c105b6555ea2aeff559f2fab4ad4cefc (patch)
treef7aa71189f63502ba86eb3bcdad4c66fee89f692 /apps/ocsp.c
parente613b1eff40f21cd99240f9884cd3396b0ab50f1 (diff)
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 <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5658)
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r--apps/ocsp.c5
1 files changed, 1 insertions, 4 deletions
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