Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2023 14:24:10 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 73ac090e9244 - stable/13 - signal: Get rid of gsignal() as it not used anywhere
Message-ID:  <202308071424.377EOAwD025743@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=73ac090e924411f59e2146280fda68d0eff2862e

commit 73ac090e924411f59e2146280fda68d0eff2862e
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-07-13 07:41:51 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-08-07 14:19:55 +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
    
    (cherry picked from commit 17cb2ac3dfcab3f47727c3c1725c61f6b98f690b)
---
 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 e002d7d0e5fa..8cce356d3bf0 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1965,25 +1965,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 70f4f1bdaa50..55e38fbc0c17 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308071424.377EOAwD025743>