Strange interaction between kqueue and UNIX domain sockets

Igor Sysoev is at rambler-co.ru
Thu Jan 26 09:09:58 PST 2006


I've saw strange interaction between UNIX domain sockets and kqueue
in FreeBSD 5.4 (at least). One process connects to another process
via UNIX domain socket. Second process writes some data and abnormally
exits. The kqueue reports to the first process about some data in fflags
and set EV_EOF flag. However, the next recv() returns 0 zero bytes.
It seems that kernel ignores these data.

I never saw such interaction between kqueue and TCP sockets.


Igor Sysoev
http://sysoev.ru/en/


More information about the freebsd-stable mailing list