From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nz3yO-0004Mr-Et for qemu-devel@nongnu.org; Tue, 06 Apr 2010 04:17:24 -0400 Received: from [140.186.70.92] (port=51930 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nz3yN-0004M5-65 for qemu-devel@nongnu.org; Tue, 06 Apr 2010 04:17:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nz3yJ-0006bF-CE for qemu-devel@nongnu.org; Tue, 06 Apr 2010 04:17:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37380) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nz3yJ-0006as-4N for qemu-devel@nongnu.org; Tue, 06 Apr 2010 04:17:19 -0400 Message-ID: <4BBAEE08.1070202@redhat.com> Date: Tue, 06 Apr 2010 10:17:12 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1270471538-31275-1-git-send-email-amit.shah@redhat.com> <4BBAE471.40308@redhat.com> <20100406075242.GH4135@amit-x200.redhat.com> In-Reply-To: <20100406075242.GH4135@amit-x200.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 0/5] chardev, virtio-console: flow control, error handling List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: qemu list , Juan Quintela > So you mean just return -EAGAIN in case write returns with -EAGAIN? > > Yeah, makes sense. Yes. Note that for EINTR you want re-enter write() through so callers don't have to worry about signals. cheers, Gerd