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

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

 



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

--
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]