Module Name: src Committed By: martin Date: Fri Mar 1 18:59:58 UTC 2019
Modified Files: src/sys/kern [netbsd-8]: tty_pty.c src/tests/kernel/kqueue/read [netbsd-8]: t_ttypty.c Log Message: Pull up following revision(s) (requested by kamil in ticket #1201): tests/kernel/kqueue/read/t_ttypty.c: revision 1.3 sys/kern/tty_pty.c: revision 1.145 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.142 -r1.142.10.1 src/sys/kern/tty_pty.c cvs rdiff -u -r1.2 -r1.2.6.1 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.