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
F165000053: D43457.id132774.diff
Wed, Aug 5, 7:02 AM
F164995545: D43457.id132805.diff
Wed, Aug 5, 6:38 AM
Unknown Object (File)
Tue, Aug 4, 2:29 AM
Unknown Object (File)
Mon, Aug 3, 5:42 PM
Unknown Object (File)
Thu, Jul 30, 8:07 AM
Unknown Object (File)
Wed, Jul 29, 12:54 AM
Unknown Object (File)
Jun 17 2026, 7:38 PM
Unknown Object (File)
May 17 2026, 1:58 AM
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