From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25112 invoked by alias); 14 Jul 2002 16:51:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25104 invoked from network); 14 Jul 2002 16:51:43 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 14 Jul 2002 16:51:43 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 5A00C3DB7; Sun, 14 Jul 2002 12:51:41 -0400 (EDT) Message-ID: <3D31AC1D.5060906@ges.redhat.com> Date: Sun, 14 Jul 2002 10:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020708 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Grant Edwards Cc: gdb-patches@sources.redhat.com Subject: Re: RDI code busy-waiting on running target? References: <20020711175854.A29971@visi.com> <20020711184343.A4472@visi.com> <20020712102650.A6637@visi.com> <20020712130727.A7707@visi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-07/txt/msg00302.txt.bz2 > + struct timeval timeout; > + timeout.tv_sec = 0; > + timeout.tv_usec = 10000; > + > + select(0,0,0,0,&timeout); > + Doing a select on nothing strikes me as wrong. How is this code detecting that something is ``ready''? Andrew