From nobody Mon Aug 7 14:24:10 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RKJV30x2Yz4pj1j; Mon, 7 Aug 2023 14:24:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RKJV30MXwz4Kt8; Mon, 7 Aug 2023 14:24:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691418251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kZoBhAgOwofnmVx5YQbMrv/r49F689X1U7nJzh2D50E=; b=xWyOKXq28jtTZP/XURl/xCOjOGARn5bnMMqrOpzqk6NBUJir5JJy8uE6n+LucZjBTPeVsK 9Mb3hosGowT18MnlBUMQHV/kDWtNhyOztXcSmjlD8Xwe6z3lI4K+XBRYFwMISYYmcIKaM7 77DY2eCNFrut+1Ofu0Ym8bhTci1L2PNz5E+0Oxbo+7riho2qpLaqBraBLmSoCLwEZGpL0Y iFYGVNp4VkfbIlT97gQY8aAdgzA3HmsrYfsf+fOdSENo3isg3RAQwiHT23+HoAAbtMN05u SABX/xyD1rD1WgYIEENLOn9ImSfrXR9zfH2tEBwJpmDIFVFd3+NRTJKOzgZIJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691418251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kZoBhAgOwofnmVx5YQbMrv/r49F689X1U7nJzh2D50E=; b=sxCKcQx87fKGlMF7Hij9kqF47H7AI3OdLKSFX3+/J4JVbaVVstTDdgoU+bXQhQxAUy8qjY hNkBOHieRK8wKR9Wj7irENNvpTuJap/EVRSqNhgesWwyUuxNmPf2FlhpWoVZsEZ/T7LyQl ou9+R1v/zGoOK/fZtFlbZsm40KgadyEMi1hLKwvd0kJsOnJMrE/ndxPIlNP+mqvwDXcxtf rkbtAdxz4qnSuzdtQD7Lqz/Kgd3dS7LoM39jX+57J3o9r1UcOa7eDRhPol67ycvh8Kbx6f u/CVfSUaGqYC4EwtlwGCCsNesrz61ijtqMEWlo5KFC3YbUmc8c35RWEg5q2brw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691418251; a=rsa-sha256; cv=none; b=kx6oOAvgZl76Y5bhxCxF2x8a0VnFxCt92GRWO5rn3rfnvp1eZBHpAK6gHLlQzxMj9saLY4 HT5IUWJRJn2wnoK7lLshFQGTxrpSgPbff3olcsYSEtPEA6NVG7nrevZf37RWp9g7O4prNc oOOztkhzihWOllx9EUoFN3UBfSttwVjnXBKrVQSSZiCpgyQpl/2/WXqT7RtqiPJhntPwcT rxMeGZmtkU5qqJZHfA+urJyIlbk4BpZT7NCCe13tTCB4ORFvVXgsP0RtKHWkvAFSYT6EPD BtrEPEJNRZuSwJtlZMd7oB6os7TfbUS72qfhsIGnPDME/pAKLpo4rCuPO2/0eQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RKJV26b77zwFc; Mon, 7 Aug 2023 14:24:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 377EOAYW025744; Mon, 7 Aug 2023 14:24:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 377EOAwD025743; Mon, 7 Aug 2023 14:24:10 GMT (envelope-from git) Date: Mon, 7 Aug 2023 14:24:10 GMT Message-Id: <202308071424.377EOAwD025743@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 73ac090e9244 - stable/13 - signal: Get rid of gsignal() as it not used anywhere List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 73ac090e924411f59e2146280fda68d0eff2862e Auto-Submitted: auto-generated The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=73ac090e924411f59e2146280fda68d0eff2862e commit 73ac090e924411f59e2146280fda68d0eff2862e Author: Dmitry Chagin AuthorDate: 2023-07-13 07:41:51 +0000 Commit: Dmitry Chagin 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);