Make killproc really public, and while we are there, constify.
This commit is contained in:
parent
42f6b6f836
commit
08a69f7d15
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: signal.9,v 1.2 2002/07/09 14:05:29 wiz Exp $
|
||||
.\" $NetBSD: signal.9,v 1.3 2002/07/28 22:18:52 manu Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1996, 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -104,7 +104,7 @@
|
||||
.Ft void
|
||||
.Fn postsig "int signum"
|
||||
.Ft void
|
||||
.Fn killproc "struct proc *p" "char *why"
|
||||
.Fn killproc "struct proc *p" "const char *why"
|
||||
.Ft void
|
||||
.Fn sigexit "struct proc *p" "int signum"
|
||||
.Ft int
|
||||
@ -347,7 +347,7 @@ is to terminate the process, and the signal does not have
|
||||
a registered handler, the process exits using
|
||||
.Fn sigexit ,
|
||||
dumping a core image if necessary.
|
||||
.It void Fn killproc "struct proc *p" "char *why"
|
||||
.It void Fn killproc "struct proc *p" "const char *why"
|
||||
.Pp
|
||||
This function sends a SIGKILL signal to the specified process. The
|
||||
message provided by
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_sig.c,v 1.121 2002/07/04 23:32:14 thorpej Exp $ */
|
||||
/* $NetBSD: kern_sig.c,v 1.122 2002/07/28 22:18:51 manu Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.121 2002/07/04 23:32:14 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.122 2002/07/28 22:18:51 manu Exp $");
|
||||
|
||||
#include "opt_ktrace.h"
|
||||
#include "opt_compat_sunos.h"
|
||||
@ -81,7 +81,6 @@ __KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.121 2002/07/04 23:32:14 thorpej Exp $
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
static void proc_stop(struct proc *p);
|
||||
void killproc(struct proc *, char *);
|
||||
static int build_corename(struct proc *, char [MAXPATHLEN]);
|
||||
sigset_t contsigmask, stopsigmask, sigcantmask;
|
||||
|
||||
@ -1307,7 +1306,7 @@ postsig(int signum)
|
||||
* Kill the current process for stated reason.
|
||||
*/
|
||||
void
|
||||
killproc(struct proc *p, char *why)
|
||||
killproc(struct proc *p, const char *why)
|
||||
{
|
||||
|
||||
log(LOG_ERR, "pid %d was killed: %s\n", p->p_pid, why);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: signalvar.h,v 1.33 2002/07/04 23:32:15 thorpej Exp $ */
|
||||
/* $NetBSD: signalvar.h,v 1.34 2002/07/28 22:18:51 manu Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -218,6 +218,7 @@ void psignal1 __P((struct proc *p, int sig, int dolock));
|
||||
void siginit __P((struct proc *p));
|
||||
void trapsignal __P((struct proc *p, int sig, u_long code));
|
||||
void sigexit __P((struct proc *, int));
|
||||
void killproc __P((struct proc *, const char *));
|
||||
void setsigvec __P((struct proc *, int, struct sigaction *));
|
||||
int killpg1 __P((struct proc *, int, int, int));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user