Module Name: src Committed By: kamil Date: Sun May 20 04:00:35 UTC 2018
Modified Files: src/sys/kern: kern_sig.c sys_ptrace_common.c src/sys/sys: signalvar.h Log Message: Make stopsigmask a non-static symbol now as it's used in ptrace(2) code This is a missing part of the previous commit. While there fix a typo in a newly added comment in the ptrace(2) code. Sponsored by <The NetBSD Foundation> To generate a diff of this commit: cvs rdiff -u -r1.346 -r1.347 src/sys/kern/kern_sig.c cvs rdiff -u -r1.41 -r1.42 src/sys/kern/sys_ptrace_common.c cvs rdiff -u -r1.90 -r1.91 src/sys/sys/signalvar.h 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_sig.c diff -u src/sys/kern/kern_sig.c:1.346 src/sys/kern/kern_sig.c:1.347 --- src/sys/kern/kern_sig.c:1.346 Sat May 19 05:01:42 2018 +++ src/sys/kern/kern_sig.c Sun May 20 04:00:35 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_sig.c,v 1.346 2018/05/19 05:01:42 kamil Exp $ */ +/* $NetBSD: kern_sig.c,v 1.347 2018/05/20 04:00:35 kamil Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.346 2018/05/19 05:01:42 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.347 2018/05/20 04:00:35 kamil Exp $"); #include "opt_ptrace.h" #include "opt_dtrace.h" @@ -113,7 +113,7 @@ static pool_cache_t ksiginfo_cache __rea static callout_t proc_stop_ch __cacheline_aligned; sigset_t contsigmask __cacheline_aligned; -static sigset_t stopsigmask __cacheline_aligned; +sigset_t stopsigmask __cacheline_aligned; static sigset_t vforksigmask __cacheline_aligned; sigset_t sigcantmask __cacheline_aligned; Index: src/sys/kern/sys_ptrace_common.c diff -u src/sys/kern/sys_ptrace_common.c:1.41 src/sys/kern/sys_ptrace_common.c:1.42 --- src/sys/kern/sys_ptrace_common.c:1.41 Sun May 20 03:51:31 2018 +++ src/sys/kern/sys_ptrace_common.c Sun May 20 04:00:35 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_ptrace_common.c,v 1.41 2018/05/20 03:51:31 kamil Exp $ */ +/* $NetBSD: sys_ptrace_common.c,v 1.42 2018/05/20 04:00:35 kamil Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -118,7 +118,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.41 2018/05/20 03:51:31 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.42 2018/05/20 04:00:35 kamil Exp $"); #ifdef _KERNEL_OPT #include "opt_ptrace.h" @@ -867,7 +867,7 @@ ptrace_sendsig(struct proc *t, struct lw t->p_xsig = signo; /* - * signo > 0 check precents a potential panic, as + * signo > 0 check prevents a potential panic, as * sigismember(&...,0) is invalid check and signo * can be equal to 0 as a special case of no-signal. */ Index: src/sys/sys/signalvar.h diff -u src/sys/sys/signalvar.h:1.90 src/sys/sys/signalvar.h:1.91 --- src/sys/sys/signalvar.h:1.90 Tue May 1 16:37:23 2018 +++ src/sys/sys/signalvar.h Sun May 20 04:00:35 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: signalvar.h,v 1.90 2018/05/01 16:37:23 kamil Exp $ */ +/* $NetBSD: signalvar.h,v 1.91 2018/05/20 04:00:35 kamil Exp $ */ /* * Copyright (c) 1991, 1993 @@ -112,7 +112,7 @@ struct sigctx { #include <sys/systm.h> /* for copyin_t/copyout_t */ -extern sigset_t contsigmask, sigcantmask; +extern sigset_t contsigmask, stopsigmask, sigcantmask; struct vnode; struct coredump_iostate;