diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2059,25 +2059,6 @@ return (error); } -/* - * Send a signal to a process group. - */ -void -gsignal(int pgid, int sig, ksiginfo_t *ksi) -{ - struct pgrp *pgrp; - - if (pgid != 0) { - sx_slock(&proctree_lock); - pgrp = pgfind(pgid); - sx_sunlock(&proctree_lock); - if (pgrp != NULL) { - pgsignal(pgrp, sig, 0, ksi); - PGRP_UNLOCK(pgrp); - } - } -} - /* * Send a signal to a process group. If checktty is 1, * limit to members which have a controlling terminal. diff --git a/sys/sys/signalvar.h b/sys/sys/signalvar.h --- a/sys/sys/signalvar.h +++ b/sys/sys/signalvar.h @@ -383,7 +383,6 @@ int cursig(struct thread *td); void execsigs(struct proc *p); -void gsignal(int pgid, int sig, ksiginfo_t *ksi); void killproc(struct proc *p, const char *why); ksiginfo_t *ksiginfo_alloc(int mwait); void ksiginfo_free(ksiginfo_t *ksi);