From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLwhr-0007Oa-GE for qemu-devel@nongnu.org; Thu, 24 Jul 2008 05:01:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLwhp-0007NH-PQ for qemu-devel@nongnu.org; Thu, 24 Jul 2008 05:01:51 -0400 Received: from [199.232.76.173] (port=42251 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLwhp-0007NC-FY for qemu-devel@nongnu.org; Thu, 24 Jul 2008 05:01:49 -0400 Received: from mail2.shareable.org ([80.68.89.115]:48649) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KLwhp-00019a-St for qemu-devel@nongnu.org; Thu, 24 Jul 2008 05:01:50 -0400 Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from ) id 1KLx3L-0002UH-MJ for qemu-devel@nongnu.org; Thu, 24 Jul 2008 10:24:03 +0100 Date: Thu, 24 Jul 2008 10:24:03 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking mode for qemu_chr_open_fd. Message-ID: <20080724092403.GA9545@shareable.org> References: <48871A7E.5030501@redhat.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48883543.3070509@redhat.com> 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 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. -- Jamie