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

--- Comment #10 from Jan Kokemüller <jan.kokemuel...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to