Fix a silly bug in signame. A signal should be *greater* than the
minimum.
This commit is contained in:
parent
dab325a890
commit
3080aa492b
2
signal.c
2
signal.c
@ -215,7 +215,7 @@ int sig;
|
|||||||
if (sig < nsignals) {
|
if (sig < nsignals) {
|
||||||
return signalent[sig];
|
return signalent[sig];
|
||||||
#ifdef SIGRTMIN
|
#ifdef SIGRTMIN
|
||||||
} else if (sig <= __SIGRTMIN && sig <= __SIGRTMAX) {
|
} else if (sig >= __SIGRTMIN && sig <= __SIGRTMAX) {
|
||||||
sprintf(buf, "SIGRT_%d", sig);
|
sprintf(buf, "SIGRT_%d", sig);
|
||||||
return buf;
|
return buf;
|
||||||
#endif /* SIGRTMIN */
|
#endif /* SIGRTMIN */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user