[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) c
From: |
Daniel Jacobowitz |
Subject: |
Re: [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32 |
Date: |
Mon, 27 Jul 2009 10:32:16 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Jul 27, 2009 at 04:25:32PM +0200, Filip Navara wrote:
> I use MinGW-built QEMU in regular command line and MSYS sh and I never had a
> single problem with the buffering. I can't speak for Cygwin, but if they
> can't get it right I don't think it's up to QEMU to fix it (heck, checking
> for a console handle is as easy as "(handle & 3) != 0").
It is not a Cygwin problem. It's a MSVCRT runtime problem. The
runtime checks isatty to determine the buffering of stdout (this is a
standard C thing to do), and Cygwin terminals do not show up as
consoles.
If the underlying device is really a Windows console, of course,
there's no problem. But Cygwin SSH ptys, for example, are not
Windows consoles.
--
Daniel Jacobowitz
CodeSourcery
- [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32, Filip Navara, 2009/07/27
- Re: [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32, Daniel Jacobowitz, 2009/07/27
- Re: [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32, Filip Navara, 2009/07/27
- Re: [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32, Daniel Jacobowitz, 2009/07/27
- Re: [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32, Filip Navara, 2009/07/27
- Re: [Qemu-devel] [PATCH 3/5] Remove setvbuf(<handle>, NULL, _IOLBF, 0) calls for Win32,
Daniel Jacobowitz <=