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>
This commit is contained in:
kamil 2018-05-20 04:00:35 +00:00
parent 7f2cb72e7e
commit 20c051d726
3 changed files with 8 additions and 8 deletions

View File

@ -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 __read_mostly;
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;

View File

@ -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 lwp *lt, int signo, int resume_all)
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.
*/

View File

@ -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;