https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239604
--- Comment #2 from [email protected] --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=984128ce2d5eb7d3374dd4b245d443ec2f5d96b2 commit 984128ce2d5eb7d3374dd4b245d443ec2f5d96b2 Author: Kyle Evans <[email protected]> AuthorDate: 2024-01-16 02:55:59 +0000 Commit: Kyle Evans <[email protected]> CommitDate: 2024-01-30 17:11:10 +0000 kern: pts: do not special case closed slave side This would previously return 1 if the slave side of the pts was closed to force an application to read() from it and observe the EOF, but it's not clear why and this is inconsistent both with how we handle devices with similar mechanics (like pipes) and also with other kernels, such as OpenBSD/NetBSD and Linux. PR: 239604 Reviewed by: kib (cherry picked from commit 30189156d325fbcc9d1997d791daedc9fa3bed20) sys/kern/tty_pts.c | 7 +---- tests/sys/kern/Makefile | 3 ++ tests/sys/kern/tty_pts.c (new) | 64 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 6 deletions(-) -- You are receiving this mail because: You are on the CC list for the bug.
