Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2010 10:15:34 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209933 - head/lib/libthr/thread
Message-ID:  <201007121015.o6CAFYBo066273@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jul 12 10:15:33 2010
New Revision: 209933
URL: http://svn.freebsd.org/changeset/base/209933

Log:
  Use _SIG_VALID instead of expanded form of the macro.
  
  Submitted by:	Garrett Cooper <yanegomi gmail com>
  MFC after:	1 week

Modified:
  head/lib/libthr/thread/thr_sig.c

Modified: head/lib/libthr/thread/thr_sig.c
==============================================================================
--- head/lib/libthr/thread/thr_sig.c	Mon Jul 12 10:14:24 2010	(r209932)
+++ head/lib/libthr/thread/thr_sig.c	Mon Jul 12 10:15:33 2010	(r209933)
@@ -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);



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