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:
parent
9f9dbc8e09
commit
b429f53eba
1 changed files with 2 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue