Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270647AbUJUFI4 (ORCPT ); Thu, 21 Oct 2004 01:08:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270651AbUJUFIx (ORCPT ); Thu, 21 Oct 2004 01:08:53 -0400 Received: from zcars04f.nortelnetworks.com ([47.129.242.57]:3732 "EHLO zcars04f.nortelnetworks.com") by vger.kernel.org with ESMTP id S270647AbUJUFHb (ORCPT ); Thu, 21 Oct 2004 01:07:31 -0400 Message-ID: <417743EF.90604@nortelnetworks.com> Date: Wed, 20 Oct 2004 23:06:55 -0600 X-Sybari-Space: 00000000 00000000 00000000 00000000 From: Chris Friesen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "H. Peter Anvin" CC: Michael Clark , linux-kernel@vger.kernel.org Subject: Re: UDP recvmsg blocks after select(), 2.6 bug? References: <20041016062512.GA17971@mark.mielke.cc> <20041017133537.GL7468@marowsky-bree.de> <4176DF84.4050401@nortelnetworks.com> <4176E001.1080104@zytor.com> <41772674.50403@metaparadigm.com> <417736C0.8040102@zytor.com> In-Reply-To: <417736C0.8040102@zytor.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 871 Lines: 22 H. Peter Anvin wrote: > The whole point is that it doesn't break the *documented* interface. In my view (and apparently others, as has been verified in current apps using blocking sockets), current behaviour *does* break the documented interface. The man page for select says: "Those listed in readfds will be watched to see if characters become available for reading (more precisely, to see if a read will not block..." If I'm the only one touching the socket, select returns with it readable, and I block when calling recvmsg, then by definition that behaviour does not match the documented interface. Chris - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/