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)
Wed, Jul 3, 3:47 AM
Unknown Object (File)
May 12 2024, 7:58 AM
Unknown Object (File)
May 12 2024, 6:12 AM
Unknown Object (File)
May 12 2024, 5:02 AM
Unknown Object (File)
Apr 30 2024, 8:39 PM
Unknown Object (File)
Apr 30 2024, 8:39 PM
Unknown Object (File)
Apr 30 2024, 8:39 PM
Unknown Object (File)
Apr 24 2024, 7:43 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