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

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



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


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