Module Name: src Committed By: mgorny Date: Fri Feb 15 18:57:15 UTC 2019
Modified Files: src/sys/kern: tty_pty.c src/tests/kernel/kqueue/read: t_ttypty.c Log Message: Fix reporting EOF via kevent and add a test case Fix the kernel pty driver to report closed slave via master's kevent EVFILT_READ. This behavior matches the behavior for pipes, is consistent with how FreeBSD implements it and is relied upon by LLDB's main loop implementation. Includes feedback by kre and kamil (from tech-kern), commit approved by kamil. To generate a diff of this commit: cvs rdiff -u -r1.144 -r1.145 src/sys/kern/tty_pty.c cvs rdiff -u -r1.2 -r1.3 src/tests/kernel/kqueue/read/t_ttypty.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.