Module Name: src Committed By: kamil Date: Fri Dec 6 17:41:43 UTC 2019
Modified Files: src/sys/kern: kern_proc.c Log Message: Correct signals in siglist+sigmask passed in kinfo_lwp Make the union of LWP and PROC pending signals correctly. To generate a diff of this commit: cvs rdiff -u -r1.236 -r1.237 src/sys/kern/kern_proc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_proc.c diff -u src/sys/kern/kern_proc.c:1.236 src/sys/kern/kern_proc.c:1.237 --- src/sys/kern/kern_proc.c:1.236 Sat Oct 12 10:55:23 2019 +++ src/sys/kern/kern_proc.c Fri Dec 6 17:41:43 2019 @@ -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 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));