git: fb97b4f1e3a5 - stable/15 - termios.4: clarify the behavior on the last close of controlling terminal
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Oct 2026 03:40:14 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=fb97b4f1e3a5e02a14666a3dca6eab1634b9fe7b
commit fb97b4f1e3a5e02a14666a3dca6eab1634b9fe7b
Author: Vladimir Grebenshchikov <vova@zote.me>
AuthorDate: 2026-10-13 23:04:27 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-10-26 03:38:17 +0000
termios.4: clarify the behavior on the last close of controlling terminal
(cherry picked from commit 44961edac85505ddd7d6670b8e0bfba9cbb7c70b)
---
share/man/man4/termios.4 | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/share/man/man4/termios.4 b/share/man/man4/termios.4
index 26402d94a872..423b10bb403c 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