From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265056AbTFCPiS (ORCPT ); Tue, 3 Jun 2003 11:38:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265060AbTFCPiR (ORCPT ); Tue, 3 Jun 2003 11:38:17 -0400 Received: from pc2-cwma1-4-cust86.swan.cable.ntl.com ([213.105.254.86]:40429 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S265056AbTFCPfv (ORCPT ); Tue, 3 Jun 2003 11:35:51 -0400 Subject: Re: select for UNIX sockets? From: Alan Cox To: Krzysztof Halasa Cc: Linux Kernel Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1054651886.9233.35.camel@dhcp22.swansea.linux.org.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 03 Jun 2003 15:51:28 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Maw, 2003-06-03 at 01:08, Krzysztof Halasa wrote: > Hi, > > Should something like this work correctly? Sort of. The wakeup may occur for several reasons and you need to check the return (for signals). Also the wakeup can occur when there is room but another thread fills it, or return room but not enough for a large datagram. Those don't seem to be the case on your example