From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8705 invoked by alias); 12 Apr 2007 19:33:27 -0000 Received: (qmail 8693 invoked by uid 22791); 12 Apr 2007 19:33:26 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (213.8.233.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Apr 2007 20:33:24 +0100 Received: from HOME-C4E4A596F7 ([81.5.51.174]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id CII21099 (AUTH halo1); Thu, 12 Apr 2007 22:33:16 +0300 (IDT) Date: Thu, 12 Apr 2007 19:33:00 -0000 Message-Id: From: Eli Zaretskii To: Joel Brobecker CC: gdb@sourceware.org In-reply-to: <20070412164744.GL3886@adacore.com> (message from Joel Brobecker on Thu, 12 Apr 2007 18:47:44 +0200) Subject: Re: [mingw32] stdin redirection Reply-to: Eli Zaretskii References: <20070411134219.GA33609@adacore.com> <20070411144451.GA21140@caradoc.them.org> <20070411145104.GE58502@adacore.com> <20070411151234.GA22185@caradoc.them.org> <20070412145818.GG3886@adacore.com> <20070412151221.GA856@caradoc.them.org> <20070412164744.GL3886@adacore.com> 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: 2007-04/txt/msg00085.txt.bz2 > Date: Thu, 12 Apr 2007 18:47:44 +0200 > From: Joel Brobecker > > > > If we could find a way to replace the current implementation of > > > fd_is_pipe into something that avoids using any of the pipe functions, > > > then that would probably solve our problem. Unfortunately, despite > > > our intensive search of MSDN, nothing turned up. > > > > To the best of my knowledge there is no way. > > That's what we though too :-(. Can't we maintain a list of all file descriptors used by GDB, where those which are open on a pipe are marked as such? Then we'd _know_ what API with each fd to use without relying on dysfunctional tests.