From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KM3HU-0005Pp-J9 for qemu-devel@nongnu.org; Thu, 24 Jul 2008 12:03:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KM3HR-0005OM-4e for qemu-devel@nongnu.org; Thu, 24 Jul 2008 12:03:02 -0400 Received: from [199.232.76.173] (port=51253 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM3HQ-0005OE-Rq for qemu-devel@nongnu.org; Thu, 24 Jul 2008 12:03:00 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:38076) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KM3HQ-0006Zc-6z for qemu-devel@nongnu.org; Thu, 24 Jul 2008 12:03:00 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking =?iso-8859-1?q?mode=09for=09qemu=5Fchr=5Fopen=5Ffd=2E?= Date: Wed, 23 Jul 2008 17:44:28 +0100 References: <48874D4A.8000604@codemonkey.ws> <48875849.60200@redhat.com> In-Reply-To: <48875849.60200@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807231744.28969.paul@codesourcery.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 Cc: Gerd Hoffmann On Wednesday 23 July 2008, Gerd Hoffmann wrote: > Anthony Liguori wrote: > > Gerd Hoffmann wrote: > >> Comments on this one? > > > > Checking every 100ms for every pty device really makes me cringe. > > Only when unconnected, and the interval can be changed. > And I'm certainly open for better ideas ... Anything that requires periodic polling is almost certainly wrong. If it's unconnected then why do we need to poll at all? If we're discarding data then we aren't going to retry, so it should be sufficient to check whenever we send data. Paul