Date: Mon, 09 Aug 2021 09:55:27 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 256952] kqueue(2): Improve epoll Linux compatibility (compat/linux/linux_event) Message-ID: <bug-256952-227-2CSCSQmqq4@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-256952-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256952 --- Comment #6 from Vico <vico13.chen@gmail.com> --- Created attachment 227040 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227040&action=edit Test cases This test case only handles EPOLLRDHUP: 1. Run this case on Linux, it prints two lines that events are recieved( '0x2010': EPOLLHUP & EPOLLRDHUP) 2. Run this case on BSD, it will hang as no EPOLLHUP or EPOLLRDHUP reported. 3. Run this case on BSD with this patch, it prints two events: a. First: print 'eventmask 0'. EPOLLIN reported as READ, and this patch just mask it but it still wake up the epoll_wait. (we have following patch to fix this issue) b. Second: print 'eventmask 0x2010'. EPOLLHUP & EPOLLRDHUP are recieved for close. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256952-227-2CSCSQmqq4>
