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)
Fri, Oct 11, 8:37 AM
Unknown Object (File)
Sep 24 2024, 4:21 AM
Unknown Object (File)
Sep 18 2024, 3:08 PM
Unknown Object (File)
Sep 12 2024, 2:57 AM
Unknown Object (File)
Sep 5 2024, 1:05 PM
Unknown Object (File)
Sep 1 2024, 4:36 PM
Unknown Object (File)
Sep 1 2024, 12:32 PM
Unknown Object (File)
Sep 1 2024, 12:32 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