git: 44961edac855 - main - termios.4: clarify the behavior on the last close of controlling terminal
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Oct 2026 17:40:34 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=44961edac85505ddd7d6670b8e0bfba9cbb7c70b
commit 44961edac85505ddd7d6670b8e0bfba9cbb7c70b
Author: Vladimir Grebenshchikov <vova@zote.me>
AuthorDate: 2026-10-13 23:04:27 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
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 .
-