Received: from eggs.gnu.org ([2001:4830:134:3::10]:58479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi0FN-0006Hc-Hk for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:24:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi0FI-0002Or-Fc for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:24:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi0FI-0002Of-9Q for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:24:04 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD26F80F7E for ; Thu, 8 Sep 2016 14:24:03 +0000 (UTC) References: <1473170165-540-1-git-send-email-berrange@redhat.com> <1473170165-540-5-git-send-email-berrange@redhat.com> From: Eric Blake Message-ID: Date: Thu, 8 Sep 2016 09:24:02 -0500 MIME-Version: 1.0 In-Reply-To: <1473170165-540-5-git-send-email-berrange@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VInjOSEOcJirnxQemN0rUwHaC5K8LK3eH" Subject: Re: [Qemu-devel] [PATCH v2 4/4] char: convert qemu_chr_fe_write to qemu_chr_fe_write_all List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: Paolo Bonzini This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --VInjOSEOcJirnxQemN0rUwHaC5K8LK3eH From: Eric Blake To: "Daniel P. Berrange" , qemu-devel@nongnu.org Cc: Paolo Bonzini Message-ID: Subject: Re: [Qemu-devel] [PATCH v2 4/4] char: convert qemu_chr_fe_write to qemu_chr_fe_write_all References: <1473170165-540-1-git-send-email-berrange@redhat.com> <1473170165-540-5-git-send-email-berrange@redhat.com> In-Reply-To: <1473170165-540-5-git-send-email-berrange@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/06/2016 08:56 AM, Daniel P. Berrange wrote: > The mux chardev was not checking the return value of any > qemu_chr_fe_write() call so would silently loose data s/loose/lose/ > on EAGAIN. >=20 > Similarly the qemu_chr_fe_printf method would not check > errors and was not in a position to retry even if it > could check. >=20 > Signed-off-by: Daniel P. Berrange > --- > qemu-char.c | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --VInjOSEOcJirnxQemN0rUwHaC5K8LK3eH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX0XSCAAoJEKeha0olJ0Nq8EYH/j3tdwQPda44xEvmJamPoYxY zNx8tfHbn6+iovZryXzCVP6ea1fnCwJSf9j0Ikx1DUKikheuMjaLHavRG4gKmo4I INracK3ioETK3G2HA3NZQD9fb9z6MUuQav1ogRxatzR3pG7yRg2U+/vJALn+vxHh qeMO+4nPUkXQ8mgLYxF86CL3XLY64O/rGsmVdMpMwCzcslcMS2VNFblNW3fW1a2O OaCvntmxebsCSXEVH1hcz51nilPk6TId1SdVvvXYtE6oK31Z4zyB07T05JzPIi7e n423NJDDFzVLrk3ZrbgpdopLrZzmkr1wWwYv4QgLkVIxYo95u8myUIJpcXZf1Vc= =OtNH -----END PGP SIGNATURE----- --VInjOSEOcJirnxQemN0rUwHaC5K8LK3eH--