From nobody Tue Oct 20 17:40:34 2026 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 4j8KSf5h96z6vqwb for ; Tue, 20 Oct 2026 17:40:34 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4j8KSf3LPkz4h2D for ; Tue, 20 Oct 2026 17:40:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792518034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HPQS77nocxWYZRHNd9GVTwXYyxtN74WXkGfSUg+k9uA=; b=iOAEXu+6AchV7Bc7mcTpInMQRW+XvdyX44B1zjBrCxNUeMUb6Jw0ibtoTZpF4+AXrvKFXX YKDGYFpg5Qx7353Q9ZFvbVr6dESkkRC0bb82e/Nk4fKAeWKkPnBlDdKVwmvXapcpj3O4bP LT8vr/idVwePm3q31kvqMhsozXW8iv6RYuHeaZI137epkS9UN6xCLl2WaGe2NcwG6A9i1H Ri++PqBbiTRR9DB5+D0x5V8vgR57qYy2lS5nN3E6dlIZEQO1eoBumLckHojos35eotsoj3 W37ZWUt/Jcdk8gckHVOBMSXkHdcRh6CBLF8Nx9m9V3VOcEjAkaobfy0xUxuHWg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1792518034; b=waJZeZG+NjudPP+YuJmUlrgqpDE+B1gOVCLlyi1SznRQL1QRpzrbIMvUpRqL7ApqZCgNmZ cxg9GUnYHmpdA+50vmqaAudSlLYcoumCv9td51cy+7xB5JKhObzI8b5S+7DOV6P/nO68kj 2h8Wvb09BHv7i+cZOpnNpw9QtX56g92Hwe0VePV1ZqRGWkGu1MTlvsnJjtcVdTE/sdYpuY XpgZcn875pR7JAvdlUflyY2pNGzMKrKTb2F+npfH0ZLyL39hE1TddIAYChRlnjA2z7ogvY NlVzqshqNPteQcRejLGRpD8Y6Joj8q87Xj57wPvADTO4AhaYq26ClD50F+QpsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792518034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HPQS77nocxWYZRHNd9GVTwXYyxtN74WXkGfSUg+k9uA=; b=njWhPnn59byjZNQCMwJ6vtOlHjvypDFT/zKKYRJjiqcj5wWN2140lmSE9+ZE9W3PBr5h3E lC1Sy5VVgyp1hErAA6BSam0xXFCN8QPLz2ZW2dMn8S6akVigHK9AwT/LsWxSf89D3NIo66 f23Ps84JKUnH0otIml3dJ0GxgdThonU7RyWaVLPH6SvkAQfuvGMtL96EazgUVtEpdVJuOu MTuR/a09vbQxhYUZ93Pf9lSRZzTndL6XfxTLYavEsYxjCwu0HZqwiI8ehQeoB8lq22CJLX +RaPyvSiBPX9I9xQpfli18zHoHcT30HfdSQNYLd8ax4dBlUaOQXcRMJW5gJ2eA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4j8KSf2j08zHkT for ; Tue, 20 Oct 2026 17:40:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2746d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 20 Oct 2026 17:40:34 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Vladimir Grebenshchikov From: Konstantin Belousov Subject: git: 44961edac855 - main - termios.4: clarify the behavior on the last close of controlling terminal List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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: 44961edac85505ddd7d6670b8e0bfba9cbb7c70b Auto-Submitted: auto-generated Date: Tue, 20 Oct 2026 17:40:34 +0000 Message-Id: <6ad7a792.2746d.98f2382@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=44961edac85505ddd7d6670b8e0bfba9cbb7c70b commit 44961edac85505ddd7d6670b8e0bfba9cbb7c70b Author: Vladimir Grebenshchikov AuthorDate: 2026-10-13 23:04:27 +0000 Commit: Konstantin Belousov CommitDate: 2026-10-20 17:38:09 +0000 termios.4: clarify the behavior on the last close of controlling terminal Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60701 --- share/man/man4/termios.4 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/share/man/man4/termios.4 b/share/man/man4/termios.4 index 62a5d0413f96..464d84c8b7c6 100644 --- a/share/man/man4/termios.4 +++ b/share/man/man4/termios.4 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 14, 2026 +.Dd October 16, 2026 .Dt TERMIOS 4 .Os .Sh NAME @@ -160,10 +160,11 @@ creates a new session with the function; other processes remaining in the old session that had this terminal as their controlling terminal continue to have it. -A process does not relinquish its -controlling terminal simply by closing all of its file descriptors -associated with the controlling terminal if other processes continue to -have it open. +Closing all file descriptors associated with the controlling terminal in +one process does not disassociate the terminal from the session while +another process continues to have it open. +When the last file descriptor associated with the controlling terminal is +closed, the terminal is disassociated from the session. .Pp When a controlling process terminates, the controlling terminal is disassociated from the current session, allowing it to be acquired by a @@ -1607,4 +1608,3 @@ documentation over three different manual pages: .Xr termios 4 , .Xr uart 4 and .Xr tty 4 . -