diff options
author | peter <peter@FreeBSD.org> | 2001-11-03 13:26:15 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-11-03 13:26:15 +0000 |
commit | bd5684dc54f898bf506b8b5ef204930f61162e1c (patch) | |
tree | 8bfe350f2ca6ab507001bcefffbfd985f90fd61f /sys/sys/_sigset.h | |
parent | abb3f5c7b465fe3b3869034ff107cbfc9b493ee5 (diff) | |
download | FreeBSD-src-bd5684dc54f898bf506b8b5ef204930f61162e1c.zip FreeBSD-src-bd5684dc54f898bf506b8b5ef204930f61162e1c.tar.gz |
_SIG_MAXSIG (128) is the highest legal signal. The arrays are offset
by one - see _SIG_IDX(). Revert part of my mis-correction in kern_sig.c
(but signal 0 still has to be allowed) and fix _SIG_VALID() (it was
rejecting ignal 128).
Diffstat (limited to 'sys/sys/_sigset.h')
-rw-r--r-- | sys/sys/_sigset.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/_sigset.h b/sys/sys/_sigset.h index 8fa9854..440a678 100644 --- a/sys/sys/_sigset.h +++ b/sys/sys/_sigset.h @@ -53,7 +53,7 @@ #define _SIG_IDX(sig) ((sig) - 1) #define _SIG_WORD(sig) (_SIG_IDX(sig) >> 5) #define _SIG_BIT(sig) (1 << (_SIG_IDX(sig) & 31)) -#define _SIG_VALID(sig) ((sig) < _SIG_MAXSIG && (sig) > 0) +#define _SIG_VALID(sig) ((sig) <= _SIG_MAXSIG && (sig) > 0) /* * System defined signals. |