HomeFreeBSD

kern: pts: do not special case closed slave side

Description

kern: pts: do not special case closed slave side

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
Reviewed by: kib

(cherry picked from commit 30189156d325fbcc9d1997d791daedc9fa3bed20)

Details

Provenance
kevansAuthored on Jan 16 2024, 2:55 AM
Parents
rG2a05c2033908: kern: tty: fix EOF handling for canonical reads
Branches
Unknown
Tags
Unknown