From nobody Thu Jul 13 07:42:05 2023 X-Original-To: dev-commits-src-main@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 4R1mld6GQcz4mbsN; Thu, 13 Jul 2023 07:42:05 +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 4R1mld5nVdz4G2k; Thu, 13 Jul 2023 07:42:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689234125; 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=rhfWMWZfeGaVUo+bqcMAFUaMdGmGLOqDNCDATvUggxo=; b=simEvlma7j07J4Dbzp6kd+mpOhwMNTOduJjUa9TIC9/QxoetfE1piuXJQPgEEqkdETdsgQ Mvjr1zDRVm99EHgfsB0onbT82Qv7LkjQwG2I//3xrYbb+Lp9EXIXnkvkUYty3S+cCSZz7c KOUMiA73VO55/NI7D04+J3EAcuTsZqefYcEkCiZcz17ZiDWJwnmVmdvoARxM/iPpeEbBob hBA3mh8wLgm4p8lZQ559tQGHnFnoLvmFZGea5J1O8tutHSj/ixA0WlDqUN4ABsrohHFhI3 nxegTLHzYLo7rkyRiSr7eLprQ+DXQX/KRA9TdpezFqmYps7EUscbOipS7hCWGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689234125; 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=rhfWMWZfeGaVUo+bqcMAFUaMdGmGLOqDNCDATvUggxo=; b=azX+UBmoTJUgsHwjCgAZ+UmyS4mR9mKMuZ1koO2PJUvhiiwdcNLcW9/FYnRTDs3aQ3M5pE tSuwlq1R4xJg2rhf5Wuioga3PwTlMy+SHVyuEQzGZAHKiA5zzYxphUv/E2bNMypyK/rNwK amOBylPnBPY03+Qlh4ehrp/2jL9hrDMRP5StFOmF6V9LIMXXPww8zNdT/CbQ4ieBPUAflE ZEh3Wf9d8rndZgzj3D+adM9DtO63wVAV43mKnPj9LPqSRY7V5DPh8yz1hK9+9VkJjljuUI tRPrDB/8YwJ9A+0Z+35OP5qSLaSTdqPBe5YFBamoNElS4v8OPmxAor6hZ32Bnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689234125; a=rsa-sha256; cv=none; b=fTEYrbZUCOqEV7iFVWKK2VMYiklp6LI9hAgn9bTskvUD+bNCBhP/6g5UPueUHm3KnnWBJv 4Xc6Edpj+ATA+v9ZC+OpvV3KtNriwc2tBO87zclfPVJVlfkHpUQr+ixFwddfC3peLSB8/p Hh5MFYDNl6bg3MBUcROuTpMAnpQbG/z9BiSzERjj+mfRowysT0ZePnRFMYX3a+ZGIN9xAC 07NuUsOGeF7PDM5yex+s89X4r6X05q8PSmsKZatotRlW00ud/TOiLRi6FOO8tKmbqAarVq Oqqh7DShLCKaipSXPKVPcyzN5uucuiFoYhykiTJ32kP22cwOO6rzVA5AO279Fg== 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 4R1mld4sFczjvl; Thu, 13 Jul 2023 07:42:05 +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 36D7g5vd047781; Thu, 13 Jul 2023 07:42:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36D7g50m047780; Thu, 13 Jul 2023 07:42:05 GMT (envelope-from git) Date: Thu, 13 Jul 2023 07:42:05 GMT Message-Id: <202307130742.36D7g50m047780@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 17cb2ac3dfca - main - signal: Get rid of gsignal() as it not used anywhere List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 17cb2ac3dfcab3f47727c3c1725c61f6b98f690b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=17cb2ac3dfcab3f47727c3c1725c61f6b98f690b commit 17cb2ac3dfcab3f47727c3c1725c61f6b98f690b Author: Dmitry Chagin AuthorDate: 2023-07-13 07:41:51 +0000 Commit: Dmitry Chagin 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);