Bug ID: 229741
           Summary: kevent is not properly adding EVFILT_READ and
                    EVFILT_WRITE for unix sockets when used in one call
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
 Attachment #195091 text/plain
         mime type:

Created attachment 195091
simple test

When adding two events to watch (EVFILT_READ and EVFILT_WRITE) in single call
kevent is not handling them properly (at least for unix sockets). If both are
added in one call which one is reported depends on their order; however if they
are added using 2 calls everything works as expected


struct kevent kev[2];
kevent(kqueue, kev, 2, NULL, 0, NULL);


struct kevent kev[2];
kevent(kqueue, kev, 1, NULL, 0, NULL);
kevent(kqueue, kev + 1, 1, NULL, 0, NULL); 

do not give identical results.

Simple test case is attached - expected result would be for test program to
output at least one line saying:

BothReadWrite received EVFILT_WRITE

You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to