From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLxCB-0005Q3-2j for qemu-devel@nongnu.org; Thu, 24 Jul 2008 05:33:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLxC8-0005O9-Lw for qemu-devel@nongnu.org; Thu, 24 Jul 2008 05:33:10 -0400 Received: from [199.232.76.173] (port=41849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLxC8-0005Nt-Du for qemu-devel@nongnu.org; Thu, 24 Jul 2008 05:33:08 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:56338) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLxC8-0000cy-M4 for qemu-devel@nongnu.org; Thu, 24 Jul 2008 05:33:09 -0400 Received: from samy by implementation.famille.thibault.fr with local (Exim 4.69) (envelope-from ) id 1KLxC2-0001HU-2K for qemu-devel@nongnu.org; Thu, 24 Jul 2008 11:33:02 +0200 Date: Thu, 24 Jul 2008 10:33:02 +0100 From: Samuel Thibault Subject: Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking mode for qemu_chr_open_fd. Message-ID: <20080724093302.GA4755@implementation.uk.xensource.com> References: <20080723121510.GJ2291@redhat.com> <48872979.4050107@redhat.com> <48873F17.4030101@redhat.com> <48874D4A.8000604@codemonkey.ws> <20080723153133.GL2291@redhat.com> <48874F0B.3040609@codemonkey.ws> <4887598B.8070405@redhat.com> <48875D48.8030906@codemonkey.ws> <48883543.3070509@redhat.com> <20080724092403.GA9545@shareable.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080724092403.GA9545@shareable.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Jamie Lokier, le Thu 24 Jul 2008 10:24:03 +0100, a écrit : > Gerd Hoffmann wrote: > > (2) Run ptys in non-blocking mode. Drawback: we risk loosing data > > in case the pty reader is slow (also when nobody is connected of > > course, but that is intentional ...). > > (4) Run ptys in non-blocking mode, but use a small output buffer in > QEMU so nothing is lost. It's not that hard. Err, there's _already_ a small buffer in the kernel pty layer :) Samuel