提交 aed3df20 编写于 作者: P Pauli

Don't call strsignal, just print the signal number.

The strsignal call is not supported by some machines, so avoid its use.
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5658)
上级 e613b1ef
...@@ -882,7 +882,6 @@ static void noteterm (int sig) ...@@ -882,7 +882,6 @@ static void noteterm (int sig)
*/ */
static void spawn_loop(void) static void spawn_loop(void)
{ {
const char *signame;
pid_t *kidpids = NULL; pid_t *kidpids = NULL;
int status; int status;
int procs = 0; int procs = 0;
...@@ -978,9 +977,7 @@ static void spawn_loop(void) ...@@ -978,9 +977,7 @@ static void spawn_loop(void)
} }
/* The loop above can only break on termsig */ /* The loop above can only break on termsig */
signame = strsignal(termsig); syslog(LOG_INFO, "terminating on signal: %d", termsig);
syslog(LOG_INFO, "terminating on signal: %s(%d)",
signame ? signame : "", termsig);
killall(0, kidpids); killall(0, kidpids);
} }
# endif # endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册