libposix: fix signals when no realtime signal is supported

This commit is contained in:
Giacomo Tesio 2017-05-26 00:27:48 +02:00
parent 439326fa1f
commit ac9969dadd
1 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,8 @@ static PosixSignalDisposition
default_signal_disposition(int code)
{
// see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
if(code >= __sigrtmin || code <= __sigrtmin)
if(__sigrtmin != 0 && __sigrtmax != 0
&&(code >= __sigrtmin || code <= __sigrtmax))
return TerminateTheProcess;
switch(__code_to_signal_map[code]){