Date: Mon, 19 Jul 2010 12:37:28 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r210233 - stable/8/lib/libthr/thread Message-ID: <201007191237.o6JCbSo1067391@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007191237.o6JCbSo1067391>