From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KM1jg-0008DM-PW for qemu-devel@nongnu.org; Thu, 24 Jul 2008 10:24:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KM1jf-0008D4-AE for qemu-devel@nongnu.org; Thu, 24 Jul 2008 10:24:04 -0400 Received: from [199.232.76.173] (port=36138 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KM1jf-0008Ct-5D for qemu-devel@nongnu.org; Thu, 24 Jul 2008 10:24:03 -0400 Received: from wr-out-0506.google.com ([64.233.184.229]:13450) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KM1jf-0006GQ-5A for qemu-devel@nongnu.org; Thu, 24 Jul 2008 10:24:03 -0400 Received: by wr-out-0506.google.com with SMTP id c46so2084117wra.18 for ; Thu, 24 Jul 2008 07:23:59 -0700 (PDT) Message-ID: <4888905F.3030404@codemonkey.ws> Date: Thu, 24 Jul 2008 09:23:27 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking mode for qemu_chr_open_fd. References: <488688E3.105@codemonkey.ws> <20080723082413.GA2291@redhat.com> <48871A7E.5030501@redhat.com> <20080723121510.GJ2291@redhat.com> <48872979.4050107@redhat.com> <48873F17.4030101@redhat.com> <48874D4A.8000604@codemonkey.ws> <48875849.60200@redhat.com> <48875CEE.6000906@codemonkey.ws> <20080724083553.GC1138@redhat.com> In-Reply-To: <20080724083553.GC1138@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , qemu-devel@nongnu.org Daniel P. Berrange wrote: > On Wed, Jul 23, 2008 at 11:31:42AM -0500, Anthony Liguori wrote: > > > The only guarenteed reliable way I know of is using epoll(), but as I > mentioned before that's Linux specific, so not immediately useful unless > we're willing to drop in an alternate epoll() based main loop for Linux > only, and say other OS have to use PTYs in blocking mode. > So far, this sounds like the best option to me. Regards, Anthony Liguori > Daniel >