svn commit: r210233 - stable/8/lib/libthr/thread

Konstantin Belousov kib at FreeBSD.org
Mon Jul 19 12:37:28 UTC 2010


Author: kib
Date: Mon Jul 19 12:37:28 2010
New Revision: 210233
URL: http://svn.freebsd.org/changeset/base/210233

Log:
  MFC r209933:
  Use _SIG_VALID instead of expanded form of the macro.

Modified:
  stable/8/lib/libthr/thread/thr_sig.c
Directory Properties:
  stable/8/lib/libthr/   (props changed)

Modified: stable/8/lib/libthr/thread/thr_sig.c
==============================================================================
--- stable/8/lib/libthr/thread/thr_sig.c	Mon Jul 19 12:32:24 2010	(r210232)
+++ stable/8/lib/libthr/thread/thr_sig.c	Mon Jul 19 12:37:28 2010	(r210233)
@@ -194,7 +194,7 @@ int
 _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 svn-src-stable-8 mailing list