[Bug 246366] Unclear and/or wrong kevent vs EINTR manual

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 11 02:47:18 UTC 2020


            Bug ID: 246366
           Summary: Unclear and/or wrong kevent vs EINTR manual
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Manual Pages
          Assignee: bugs at FreeBSD.org
          Reporter: aler at playground.ru
                CC: doc at FreeBSD.org

man kevent(2) says:

> Cancellation can only occur before any changes are made to the kqueue, or when the call was blocked and no changes to the queue were requested.


> [EINTR] A cancellation request was delivered to the thread, but not yet handled.
> When kevent() call fails with EINTR error, all changes in the changelist have been applied.

I think that both these statements can't be true at the same time, because the
first says that kevent() can be cancelled BEFORE changes are made, and the
second says that changes are always applied when EINTR that could be result of

Another possibility is that this manpage is just very unclear about EINTR

I don't know what case is right one but I'm sure that there is something wrong

You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-doc mailing list