diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2010-07-19 12:37:28 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2010-07-19 12:37:28 +0000 |
| commit | 7be00d5807ff857724f61c50a53b0147d0ef694d (patch) | |
| tree | 2b2706481499a6ea064b6ca8fc040df5ec8314f0 /lib | |
| parent | 9b53c9555369e48284f442f5c74ecbb075f4d88b (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libthr/thread/thr_sig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index 9615b06febb9..efd8cb492849 100644 --- a/lib/libthr/thread/thr_sig.c +++ b/lib/libthr/thread/thr_sig.c @@ -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); |
