On Tue, 2 Nov 2004 16:52:53 -0800 Mitchell Blank Jr <mitch@sfgoth.com> wrote: > Stephen Hemminger wrote: > > This patch addresses the issue of blocking usage of select() by UDP applications. > > I'm glad to see someone actually putting some code forward in this debate... > Looks pretty good, but can't you implement this a bit cleaner by just > wrapping datagram_poll? Something like: But the wrapper was bigger and uglier than just doing it. Especially since UDP doesn't need to connection oriented checks. So the fast path code in UDP is actually faster than datagram_poll. > > That way you duplicate a lot less code. It does slightly more work but > only in the broken !O_NONBLOCK case - the fast path is just as quick. > > -Mitch - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html