From acb71b22f1443bd8a34f6e457cf57c4527d7ab52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Imre=20Vad=C3=A1sz?= Date: Sun, 20 Aug 2017 00:52:59 +0200 Subject: [PATCH] kqueue.2: Improve explanation of EV_EOF for fifos. * The EV_EOF flag can't be cleared with EV_CLEAR. For Fifos it will be cleared when a new reader (for EVFILT_WRITE) or writer (for EVFILT_READ) connects. --- lib/libc/sys/kqueue.2 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2 index 559fc37888..aecd67fd65 100644 --- a/lib/libc/sys/kqueue.2 +++ b/lib/libc/sys/kqueue.2 @@ -273,8 +273,7 @@ When the last writer disconnects, the filter will set .Dv EV_EOF in .Fa flags . -This may be cleared by passing in -.Dv EV_CLEAR , +This will be cleared by the filter when a new writer connects, at which point the filter will resume waiting for data to become available before returning. .El @@ -286,9 +285,8 @@ For sockets, pipes and fifos, will contain the amount of space remaining in the write buffer. The filter will set .Dv EV_EOF -when the reader disconnects, and for the fifo case, this may be cleared -by use of -.Dv EV_CLEAR . +when the reader disconnects, and for the fifo case, this will be cleared +when a new reader connects. Note that this filter is not supported for vnodes. .Pp For sockets, the low water mark and socket error handling is -- 2.11.4.GIT