[Bug 203366] kevent: EV_CLEAR on fifo does not work correctly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 19 16:43:47 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203366

Jan Kokemüller <jan.kokemueller at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kokemueller at gmail.com

--- Comment #7 from Jan Kokemüller <jan.kokemueller at gmail.com> ---
Created attachment 188967
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=188967&action=edit
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 writers
when there was actually some data read.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list