[Libguestfs] [PATCH 1/5] daemon error handling: Clear errno before calling stub functions.

Richard W.M. Jones rjones at redhat.com
Mon Nov 30 15:44:12 UTC 2009


On Mon, Nov 30, 2009 at 03:31:58PM +0000, Matthew Booth wrote:
> Incidentally, what's returning success but still setting an error code  
> which requires this?

Actually the problem is the reverse: returning error and not setting
errno.  You'd end up printing a message about some preceeding error
potentially from some time before.

Nothing actually does this, certainly not on Linux.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v




More information about the Libguestfs mailing list