From nobody Thu Dec 01 02:18:12 2022 X-Original-To: bugs@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 4NN09J4mNwz4jmZg for ; Thu, 1 Dec 2022 02:18:12 +0000 (UTC) (envelope-from bugzilla-noreply@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 4NN09J2ZqTz3j93 for ; Thu, 1 Dec 2022 02:18:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669861092; 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=NKq2LvTu0+c/YOaRkIA6/4lLe3xFtVK0Ucb3mB4p7QE=; b=C6Rd+sMZiZA29Q2VFJ6Mw4nMQUACztIql/eTKVxCypvhvx75mjUoy6rLMNnvmjJRxEz746 kWCZ+rIHxXvz40jTPgiOh9fTmHfZtSA78q97EJ8BzJiiKctulqmJUjIQq/iOK7beqcvGLd h9xPHGW0MVW6ivQCSh5oW690aYFUbyeCkD3jGGwolE5102WKEiMQGOXiZdXfW52qNw18OH klk5R0tPPYYnD+5zSRz4tGusIwEbK+ylv6t7n5H+r08VTazbfHFM2Z4ssTBgjE8o/1JLKZ q+jAj+zbNiF2UtB74zn1xuwUe0B57+N+DBZKWIAnYYQikzIkzB/Qq3gLL18qFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669861092; a=rsa-sha256; cv=none; b=rpvPfcPUQcA+kTgrAJ8kJq67KHwzNxByhelRYGgBwoWLzcQHuwJ+ue744tercKaGQFua0b +oUoIpnNLM9Pag19v++9E3WJRmniWYg9vUNC1i0YaLFvNhdyxx5fSqtuXcNUuvGDgXlSNZ Bfbrgv5siWwq4Th+jalhhV4Hcm01UxjAS4oFBjgAg8ymE9HRWP5mNRtACJ8QPvmK5H7qDU fL7GExUaosEXt9x886jux503+zL0W7xD6OaGh8kSdtFwvmzeoqMHe95uvGSo76IAqx5i7z TU+fHmwxijomliMW40OrAb9IyjoOeCBu5kMTGTvOQYBRhR8mydys8FkmwGyfBg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4NN09J1Qh7zKlg for ; Thu, 1 Dec 2022 02:18:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2B12ICGL025533 for ; Thu, 1 Dec 2022 02:18:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B12ICeQ025532 for bugs@FreeBSD.org; Thu, 1 Dec 2022 02:18:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268093] killall(1) allow sending signals to pts(4) Date: Thu, 01 Dec 2022 02:18:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-bugs@daemonbytes.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268093 Bug ID: 268093 Summary: killall(1) allow sending signals to pts(4) Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd-bugs@daemonbytes.net Attachment #238465 text/plain mime type: Created attachment 238465 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D238465&action= =3Dedit Patchfile Hello, the current version of killall(1) does not allow sending signals to process= es attached to a pts(4) e.g /dev/pts/4 and to do so results in an error messag= es like the one below.=20 #killall -t pts/4 killall: stat(/dev/ttypts/4): No such file or directory The provided patch would enable the ability to do that. Best regards Daniel Dowse --- killall.c.orig 2022-12-01 02:47:39.299477000 +0100 +++ killall.c 2022-12-01 02:47:21.503069000 +0100 @@ -257,6 +257,8 @@ snprintf(buf, sizeof(buf), "%s", tty); else if (strncmp(tty, "tty", 3) =3D=3D 0) snprintf(buf, sizeof(buf), "/dev/%s", tty); + else if (strncmp(tty, "pts", 3) =3D=3D 0) + snprintf(buf, sizeof(buf), "/dev/%s", tty); else snprintf(buf, sizeof(buf), "/dev/tty%s", tty); if (stat(buf, &sb) < 0) --=20 You are receiving this mail because: You are the assignee for the bug.=