Re: [libvirt] [PATCH 2/2] remote: react to failures on wakeupFD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/09/2010 03:25 PM, Eric Blake wrote:
> * src/remote/remote_driver.c (remoteIO, remoteIOEventLoop): Report
> failures on pipe used for wakeup.
> Reported by Chris Lalancette.
> ---
> 
> I think this is what you had in mind for additional error
> checking.  However, in practice, will one-byte reads and
> writes on fd's created by pipe() ever encounter any errors?
> 
> +        s = safewrite(priv->wakeupSendFD, &ignore, sizeof(ignore));
> +        if (s < 0) {
> +            errorf(flags & REMOTE_CALL_IN_OPEN ? NULL : conn,
> +                   VIR_ERR_INTERNAL_ERROR,
> +                   _("failed to wake up polling thread: %s"),
> +                   strerror(errno));

Of course, this patch (and also 1/2) fails 'make syntax-check', thanks
to strerror.  Yet another respin coming.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]