strsignal(): Do not append signal numbers to messages for known signals.
Messages for known signals looked like "Terminated: 15" instead of "Terminated".
This commit is contained in:
parent
303d68bc4f
commit
b8d472d710
@ -120,7 +120,6 @@ strsignal(int num)
|
||||
UPREFIX,
|
||||
#endif
|
||||
sizeof(sig_ebuf));
|
||||
}
|
||||
|
||||
signum = num;
|
||||
if (num < 0)
|
||||
@ -143,6 +142,7 @@ strsignal(int num)
|
||||
break;
|
||||
}
|
||||
*p = '\0';
|
||||
}
|
||||
|
||||
#if defined(NLS)
|
||||
catclose(catd);
|
||||
|
Loading…
Reference in New Issue
Block a user