diff options
| author | kamil <kamil@NetBSD.org> | 2019-12-06 17:41:43 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2019-12-06 17:41:43 +0000 |
| commit | 1083671e2b3ff63efcbc7a839344404afefa9b3a (patch) | |
| tree | b4b2e646dbdf78ebbab9aee80badfdeb021e6c45 /sys | |
| parent | c7ab7c706178d4587c631409f7657ee44d300798 (diff) | |
Correct signals in siglist+sigmask passed in kinfo_lwp
Make the union of LWP and PROC pending signals correctly.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 70d8bbffcc1..8cc37ab2959 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_proc.c,v 1.236 2019/10/12 10:55:23 kamil Exp $ */ +/* $NetBSD: kern_proc.c,v 1.237 2019/12/06 17:41:43 kamil Exp $ */ /*- * Copyright (c) 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.236 2019/10/12 10:55:23 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.237 2019/12/06 17:41:43 kamil Exp $"); #ifdef _KERNEL_OPT #include "opt_kstack.h" @@ -2457,7 +2457,7 @@ fill_kproc2(struct proc *p, struct kinfo_proc2 *ki, bool zombie, bool allowaddr) ki->p_estcpu += l->l_estcpu; } } - sigplusset(&p->p_sigpend.sp_set, &ss2); + sigplusset(&p->p_sigpend.sp_set, &ss1); memcpy(&ki->p_siglist, &ss1, sizeof(ki_sigset_t)); memcpy(&ki->p_sigmask, &ss2, sizeof(ki_sigset_t)); |
