From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24157 invoked by alias); 14 Aug 2008 11:05:24 -0000 Received: (qmail 24149 invoked by uid 22791); 14 Aug 2008 11:05:24 -0000 X-Spam-Check-By: sourceware.org Received: from ns2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Aug 2008 11:04:21 +0000 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id DCF6345F09; Thu, 14 Aug 2008 13:04:18 +0200 (CEST) From: Andreas Schwab To: "Kari Nalli" Cc: gdb@sourceware.org Subject: Re: gdb and muti threads with recvfrom References: <568faa340808140255g6f00a83fl4661d015137fbdfc@mail.gmail.com> X-Yow: Yow! Are you the self-frying president? Date: Thu, 14 Aug 2008 19:49:00 -0000 In-Reply-To: <568faa340808140255g6f00a83fl4661d015137fbdfc@mail.gmail.com> (Kari Nalli's message of "Thu, 14 Aug 2008 12:55:06 +0300") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00177.txt.bz2 "Kari Nalli" writes: > And the intressting function where the prints are comming is recvfrom > (no data is send to sockets so they should timeout) > According to IEEE Std 1003.1, 2004 Edition After timeout Recvfrom > should return with errno set to [EAGAIN] or [EWOULDBLOCK]. It also says: [EINTR] A signal interrupted recvfrom( ) before any data was available. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."