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)
This commit is contained in:
parent
e613b1eff4
commit
aed3df20c1
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue