[Bug 203366] kevent: EV_CLEAR on fifo does not work correctly
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 16 06:14:15 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203366
--- Comment #10 from Jan Kokemüller <jan.kokemueller at gmail.com> ---
So the EV_EOF flag is 'sticky' in kn_flags and does not get cleared anywhere,
right? Then I was wrong in comment #7.
There is also bug #224615 for an interesting edgecase at FIFO EOF where kevent
and poll differ.
I also wonder why the man page speaks of using EV_CLEAR to clear the EV_EOF
condition. What about level triggered kevent() without EV_CLEAR?
See also this commit from DragonFly[1]. They had the same problem. They still
use the filt_fiforead filter in 'sys/vfs/fifofs/fifo_vnops.c', though.
I'll try to write a test program that reproduces all those EOF related issues.
[1]:
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/acb71b22f1443bd8a34f6e457cf57c4527d7ab52
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list