[libvirt] [PATCH 5/9] vsh: Add helper for safe remembering of libvirt errors

Ján Tomko jtomko at redhat.com
Wed Apr 12 11:05:28 UTC 2017


On Tue, Apr 11, 2017 at 05:53:51PM +0200, Peter Krempa wrote:
>Avoid the annoying issue where the public object freeing APIs overwrite
>the error set by helper functions, since they don't invoke the callback.
>
>The new helper remembers the error only if no previous error was set.
>---
> tools/virsh-util.c |  2 ++
> tools/vsh.c        | 15 +++++++++++++++
> tools/vsh.h        |  1 +
> 3 files changed, 18 insertions(+)
>

ACK

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170412/4685b34d/attachment-0001.sig>


More information about the libvir-list mailing list