From nobody Thu Dec 01 03:42:08 2022 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 4NN228626bz4j1Hq; Thu, 1 Dec 2022 03:42:08 +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 4NN2285b1yz3pQt; Thu, 1 Dec 2022 03:42:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669866128; 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=MhCql+cuHGrrovRx9g6TlqgpuHGhw/61Y6+orXWSSAI=; b=yDCh89EUdFMS9WfYhVIFPBbmEj7npSkO5QqjKfpr/64ZHZkeIVnBe6gnewmNy54wRW4WKY CueGP38dQED7UEV3VLYH/q/Mo1Ircz3Ha8DMIuiBhADlp31TvRNZ8fBVt2uXubTW2wEhVT cEFUPkNwoTAluQnPMHKZv/Nw8u7dLYYUBUdDRDqbKhLrlYV749955A/1WEssHkb6lpJShS GBq4cjQeKHYTCE0gnKDGvYIAOhJuJyIgLl5rwLJrGsBX2MBk+VCvxrk9F8U9y/i10bHQC/ s/WQirQeuzGYTQzfQ+hjnMkRcNHTXTU6e7yOuIUr4SZ7p8AVlWAlnUsr7bCd8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669866128; 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=MhCql+cuHGrrovRx9g6TlqgpuHGhw/61Y6+orXWSSAI=; b=ta1PfrIqiRZPJOCUIfUjFNbIBk+z/tPCclH73VC3mKZorWnOoqLH4+mdVjvYMOLrGklLQd 3TAfZEGuVUkPmFGGU6CD8TgIeprmoH5ybyPN1P1orOnS//0WhLKiso52W2pO0vLjjustnk pD/KjlO+5Z7T6hQtlC/vdqChtvNREkr7zeirwMRY5d+7ovVzmHDhNEB+Z0QloHAJVTzj6a bKNovpzlJ4VYAHBWMZcNk48g840JlvGyP539m75gqy/CeHTRJjfz7rBCOkTnRTu4VxVlH5 d96pIU31BbrarXrQS+sxCpxeQbd9hGHe168N36yyVJBorZ1jqyzf+o9IqmS5ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669866128; a=rsa-sha256; cv=none; b=cdyAggXOusuEmK51ylAcg5D3snZrdxXM18ACCgkZIDlJVjQmHG0QzyGshmjd4L1zx0Je6r lV7IngXm059hSjPfOhBSfQ6pQFRSTR+YojO/Wb8HVgxPHVbjuNgssENT7UeVJx+0VbQe1y njdjNI0mjU+/6yZ3k0iwULp+5rS2ukjAGN79lSx6XdfiFwp0/5iDwIL5CrWGidgeMwbS6Y LhFT7x9nu5D/3yvzl7pRwVP1sRVy3sUp/if+6wPMyakFdCV5xx0OVhh5vKR+fikXjCKaFk Fb2UvLJXt6YHarZUtr23MTmOemHhWtzCMMJ5KsZCxyTYS3aORKdB64r/WdaJqQ== 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 4NN2284dw7zNGK; Thu, 1 Dec 2022 03:42:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B13g8PE068891; Thu, 1 Dec 2022 03:42:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B13g8Df068890; Thu, 1 Dec 2022 03:42:08 GMT (envelope-from git) Date: Thu, 1 Dec 2022 03:42:08 GMT Message-Id: <202212010342.2B13g8Df068890@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: e442917ee419 - main - killall(1): allow sending signals to processes with control terminal on pts(4) 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e442917ee41986c416afea1d152ad03c5daeeac4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e442917ee41986c416afea1d152ad03c5daeeac4 commit e442917ee41986c416afea1d152ad03c5daeeac4 Author: Daniel Dowse AuthorDate: 2022-12-01 02:42:35 +0000 Commit: Konstantin Belousov CommitDate: 2022-12-01 02:42:35 +0000 killall(1): allow sending signals to processes with control terminal on pts(4) PR: 268093 Reviewed by: kib MFC after: 1 week --- usr.bin/killall/killall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c index aca0830c158b..494a527d190b 100644 --- a/usr.bin/killall/killall.c +++ b/usr.bin/killall/killall.c @@ -255,7 +255,8 @@ main(int ac, char **av) if (tty) { if (strncmp(tty, "/dev/", 5) == 0) snprintf(buf, sizeof(buf), "%s", tty); - else if (strncmp(tty, "tty", 3) == 0) + else if (strncmp(tty, "tty", 3) == 0 || + strncmp(tty, "pts/", 4) == 0) snprintf(buf, sizeof(buf), "/dev/%s", tty); else snprintf(buf, sizeof(buf), "/dev/tty%s", tty);