And signal_name_to_number().
---------------------------- adapted for newlib branch
. file has been moved to: lib/signals.c
. only 'signal_name_to_number()' was impacted
. function 'print_given_signals()' no longer exists
. thus the bulk of original patch no longer applicable
Signed-off-by: Jim Warner <james.warner@comcast.net>
if(*endp || endp==name)
return -1; /* not valid */
}
- if(val+SIGRTMIN>127)
+ if(val<0 || val+SIGRTMIN>127)
return -1; /* not valid */
return val+offset;
}