summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-11-03 13:26:15 +0000
committerpeter <peter@FreeBSD.org>2001-11-03 13:26:15 +0000
commitbd5684dc54f898bf506b8b5ef204930f61162e1c (patch)
tree8bfe350f2ca6ab507001bcefffbfd985f90fd61f /sys/kern/kern_sig.c
parentabb3f5c7b465fe3b3869034ff107cbfc9b493ee5 (diff)
downloadFreeBSD-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/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 469a20f..da9b64c 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1053,7 +1053,7 @@ kill(td, uap)
register struct proc *p;
int error = 0;
- if ((u_int)uap->signum >= _SIG_MAXSIG)
+ if ((u_int)uap->signum > _SIG_MAXSIG)
return (EINVAL);
mtx_lock(&Giant);
@@ -1105,7 +1105,7 @@ okillpg(td, uap)
{
int error;
- if ((u_int)uap->signum >= _SIG_MAXSIG)
+ if ((u_int)uap->signum > _SIG_MAXSIG)
return (EINVAL);
mtx_lock(&Giant);
error = killpg1(td->td_proc, uap->signum, uap->pgid, 0);
OpenPOWER on IntegriCloud