[PATCH] Use _SIG_VALID macro in lib/libthr/thread/thr_sig.c
Garrett Cooper
yanegomi at gmail.com
Mon Jul 12 07:44:49 UTC 2010
Found another item that could be converted over to _SIG_VALID in
libthr's thr_sig.c this time.
Thanks,
-Garrett
Index: lib/libthr/thread/thr_sig.c
===================================================================
--- lib/libthr/thread/thr_sig.c (revision 206173)
+++ lib/libthr/thread/thr_sig.c (working copy)
@@ -194,7 +194,7 @@
_sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
{
/* Check if the signal number is out of range: */
- if (sig < 1 || sig > _SIG_MAXSIG || sig == SIGCANCEL) {
+ if (!_SIG_VALID(sig) || sig == SIGCANCEL) {
/* Return an invalid argument: */
errno = EINVAL;
return (-1);
More information about the freebsd-hackers
mailing list