Page MenuHomeFreeBSD

kern: pts: do not special case closed slave side
ClosedPublic

Authored by kevans on Jan 15 2024, 5:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 29, 6:59 AM
Unknown Object (File)
Nov 13 2025, 6:08 AM
Unknown Object (File)
Oct 24 2025, 2:48 PM
Unknown Object (File)
Oct 23 2025, 3:55 PM
Unknown Object (File)
Oct 23 2025, 10:19 AM
Unknown Object (File)
Oct 18 2025, 12:39 AM
Unknown Object (File)
Oct 15 2025, 5:30 PM
Unknown Object (File)
Oct 11 2025, 8:45 PM
Subscribers
None

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable