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)
Thu, Aug 27, 9:45 AM
Unknown Object (File)
Thu, Aug 27, 8:12 AM
Unknown Object (File)
Wed, Aug 26, 9:53 PM
Unknown Object (File)
Mon, Aug 24, 12:58 PM
Unknown Object (File)
Mon, Aug 24, 11:04 AM
Unknown Object (File)
Sat, Aug 22, 6:21 AM
Unknown Object (File)
Thu, Aug 20, 9:40 AM
Unknown Object (File)
Wed, Aug 12, 9:10 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