aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/signal.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-11-03 13:26:15 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-11-03 13:26:15 +0000
commit6c1534a73e5b86aee3406bcbe24dab1169cddd7b (patch)
tree8bfe350f2ca6ab507001bcefffbfd985f90fd61f /sys/sys/signal.h
parentb9d9d8e74c2227151d776d187ad598a5411b5bf6 (diff)
downloadsrc-6c1534a73e5b86aee3406bcbe24dab1169cddd7b.tar.gz
src-6c1534a73e5b86aee3406bcbe24dab1169cddd7b.zip
_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).
Notes
Notes: svn path=/head/; revision=85971
Diffstat (limited to 'sys/sys/signal.h')
-rw-r--r--sys/sys/signal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 8fa9854f4850..440a678fd41c 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.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.