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 Content-Length: 627 Lines: 17 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 - 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/