summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2017-02-05 21:31:40 +0000
committerjilles <jilles@FreeBSD.org>2017-02-05 21:31:40 +0000
commit1a0d7f1603631fc05533c96320d14e8666365f03 (patch)
tree8282b39ba33380d848328fcfb156db894cd6af99 /sys/kern
parente99a54c0213b5a21e91a6fcb2d35827c2661a8e6 (diff)
downloadFreeBSD-src-1a0d7f1603631fc05533c96320d14e8666365f03.zip
FreeBSD-src-1a0d7f1603631fc05533c96320d14e8666365f03.tar.gz
MFC r310096: reaper: Make REAPER_KILL_SUBTREE actually work.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_procctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_procctl.c b/sys/kern/kern_procctl.c
index e6e432e..4ccf646 100644
--- a/sys/kern/kern_procctl.c
+++ b/sys/kern/kern_procctl.c
@@ -243,7 +243,7 @@ reap_kill(struct thread *td, struct proc *p, struct procctl_reaper_kill *rk)
return (ECAPMODE);
if (rk->rk_sig <= 0 || rk->rk_sig > _SIG_MAXSIG)
return (EINVAL);
- if ((rk->rk_flags & ~REAPER_KILL_CHILDREN) != 0)
+ if ((rk->rk_flags & ~(REAPER_KILL_CHILDREN | REAPER_KILL_SUBTREE)) != 0)
return (EINVAL);
PROC_UNLOCK(p);
reap = (p->p_treeflag & P_TREE_REAPER) == 0 ? p->p_reaper : p;
OpenPOWER on IntegriCloud