git: 17cb2ac3dfca - main - signal: Get rid of gsignal() as it not used anywhere
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Jul 2023 07:42:05 UTC
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=17cb2ac3dfcab3f47727c3c1725c61f6b98f690b
commit 17cb2ac3dfcab3f47727c3c1725c61f6b98f690b
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-07-13 07:41:51 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-07-13 07:41:51 +0000
signal: Get rid of gsignal() as it not used anywhere
Reviewed by: imp, kib
Differential Revision: https://reviews.freebsd.org/D41007
MFC after: 1 week
---
sys/kern/kern_sig.c | 19 -------------------
sys/sys/signalvar.h | 1 -
2 files changed, 20 deletions(-)
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index ecfde7a549fc..d38cad182c30 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -2059,25 +2059,6 @@ kern_sigqueue(struct thread *td, pid_t pid, int signum, union sigval *value)
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
index 611eb11a8629..1db8813b6bf0 100644
--- a/sys/sys/signalvar.h
+++ b/sys/sys/signalvar.h
@@ -383,7 +383,6 @@ sigallowstop(int prev)
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);