Date: Tue, 19 Dec 2017 16:43:46 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 203366] kevent: EV_CLEAR on fifo does not work correctly Message-ID: <bug-203366-8-f6hM4Wuglj@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-203366-8@https.bugs.freebsd.org/bugzilla/> References: <bug-203366-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D203366 Jan Kokem=C3=BCller <jan.kokemueller@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jan.kokemueller@gmail.com --- Comment #7 from Jan Kokem=C3=BCller <jan.kokemueller@gmail.com> --- Created attachment 188967 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188967&action= =3Dedit wake up pipe writers in edge triggered way What do you think about the attached patch? I believe the EV_EOF condition is cleared correctly by EV_CLEAR -- but each time you try to read(2) at EOF the pipeselwakeup() down in pipe_read() re-triggers the EOF condition. It should be enough to just wake up the writ= ers when there was actually some data read. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203366-8-f6hM4Wuglj>