bootstrap: Don't use strsignal [PR 98300]

Sadly strsignal is nonportable, so signal numbers it is then.

	c++tools/
	* server.cc (crash_signal): Don't use strsignal.
This commit is contained in:
Nathan Sidwell 2020-12-17 06:05:25 -08:00
parent 9f9dbc8e09
commit b429f53eba
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ static void ATTRIBUTE_NORETURN ATTRIBUTE_COLD
crash_signal (int sig)
{
signal (sig, SIG_DFL);
internal_error ("signal %s", strsignal (sig));
// strsignal is not portable :(
internal_error ("signal %d", sig);
}
/* A fatal error of some kind. */