Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2010 00:44:48 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        hackers@freebsd.org
Subject:   [PATCH] Use _SIG_VALID macro in lib/libthr/thread/thr_sig.c
Message-ID:  <AANLkTik4_d-QnuQc40JUqtitgsslQqWjF5sPUID7aT1M@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
    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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik4_d-QnuQc40JUqtitgsslQqWjF5sPUID7aT1M>