[libvirt] [PATCH] (failed) virConnectOpenAuth: Add VIR_CONNECT_NO_DEFAULT_ERROR_HANDLER flag.

Richard W.M. Jones rjones at redhat.com
Mon Oct 15 15:16:57 UTC 2012


On Mon, Oct 15, 2012 at 04:07:35PM +0100, Daniel P. Berrange wrote:
> I would think we could at least allow an env variable to turn
> off use of the default though. eg we could allow anyone to do
> 
>   export LIBVIRT_DEFAULT_ERROR_PRINT=0
> 
> and this would stop all use of virDefaultErrorFunc globally. THen
> libguestfs could set this env var, but apps would still be able to
> set a custom error function if they desired.

Unfortunately, how to set environment variables per-thread?  I don't
think it's possible (but please correct me if I'm wrong).

The same problem also affects the autostart thing (RHBZ#865464#c9).

BTW today I solved much the same problem in libguestfs:

https://github.com/libguestfs/libguestfs/commit/9466060201600db47016133d80af22eb38091a49

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top




More information about the libvir-list mailing list