Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Correct signals in siglist+sigmask passed in kinfo_lwp



details:   https://anonhg.NetBSD.org/src/rev/f963a7d08491
branches:  trunk
changeset: 465894:f963a7d08491
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Dec 06 17:41:43 2019 +0000

description:
Correct signals in siglist+sigmask passed in kinfo_lwp

Make the union of LWP and PROC pending signals correctly.

diffstat:

 sys/kern/kern_proc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a9ce3ba23d80 -r f963a7d08491 sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c      Fri Dec 06 16:54:47 2019 +0000
+++ b/sys/kern/kern_proc.c      Fri Dec 06 17:41:43 2019 +0000
@@ -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 @@
                        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));
 



Home | Main Index | Thread Index | Old Index