From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22187 invoked by alias); 19 Apr 2007 12:26:43 -0000 Received: (qmail 22178 invoked by uid 22791); 19 Apr 2007 12:26:43 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 19 Apr 2007 13:26:40 +0100 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id B82964B267; Thu, 19 Apr 2007 07:26:38 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 708794B262; Thu, 19 Apr 2007 07:26:38 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HeVif-0006rn-KZ; Thu, 19 Apr 2007 08:26:37 -0400 Date: Thu, 19 Apr 2007 13:08:00 -0000 From: Daniel Jacobowitz To: Jerome Guitton Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA/mingw32] stdin redirection Message-ID: <20070419122637.GA26372@caradoc.them.org> Mail-Followup-To: Jerome Guitton , gdb-patches@sources.redhat.com References: <20070419122008.GA27914@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070419122008.GA27914@adacore.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00292.txt.bz2 On Thu, Apr 19, 2007 at 02:20:08PM +0200, Jerome Guitton wrote: > + if (GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_DISK) Hey neat, I didn't know that was there. > + SetEvent (state->read_event); > + continue; > + > + /* Delay 10ms before checking again, but allow the stop event > + to wake us. */ > + if (WaitForSingleObject (state->stop_select, 10) == WAIT_OBJECT_0) > + continue; > + > + goto retry; I assume you meant to delete the code at the bottom and the retry label. OK with that change. -- Daniel Jacobowitz CodeSourcery