From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20096 invoked by alias); 1 Aug 2005 20:52:47 -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 20087 invoked by uid 22791); 1 Aug 2005 20:52:45 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 01 Aug 2005 20:52:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1DzhH8-0005FV-Oj; Mon, 01 Aug 2005 16:52:42 -0400 Date: Mon, 01 Aug 2005 20:52:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Mark Kettenis , gdb-patches@sources.redhat.com Subject: Re: MI testsuite to use PTY for inferior Message-ID: <20050801205242.GA20064@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Mark Kettenis , gdb-patches@sources.redhat.com References: <20050730230309.GA22547@white> <20050731012111.GB13808@nevyn.them.org> <20050731131653.GC22547@white> <20050731153051.GA28158@nevyn.them.org> <20050731212021.GA24144@white> <20050801113002.GB24853@white> <200508011901.j71J1i1w026583@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00034.txt.bz2 On Mon, Aug 01, 2005 at 11:45:03PM +0300, Eli Zaretskii wrote: > Seriously, though: buffering and other aspects of I/O relevant to > terminals can be fixed by suitable calls to termios or similar > functions. > > In addition, a file handle redirected to the pipe vis-a-vis a FE > doesn't necessarily need to be line buffered. FWIW, this bit is a real problem. Not necessarily a big problem, but definitely a real problem. You can't fix it via termios; it isn't a property of the terminal (and we don't have a terminal, anyway). It's set by the application startup code based on the result of isatty() on fd 0, usually - at least both mingw32 and GNU/Linux do it this way. The default for non-terminals is block buffered, which if you're waiting for output is really annoying. -- Daniel Jacobowitz CodeSourcery, LLC