diff --git a/share/man/man9/signal.9 b/share/man/man9/signal.9 index c788a3bc31ed..6dffc667d8ae 100644 --- a/share/man/man9/signal.9 +++ b/share/man/man9/signal.9 @@ -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 diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index e5f13731f561..08a00353cf9d 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -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 -__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 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); diff --git a/sys/sys/signalvar.h b/sys/sys/signalvar.h index 5d306ced9136..cf00fadce364 100644 --- a/sys/sys/signalvar.h +++ b/sys/sys/signalvar.h @@ -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));