Re: [PATCH 02/11] Reset logging filter function when forking

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

 



On 01/24/2011 08:13 AM, Daniel P. Berrange wrote:
> To ensure child processes will log all error messages, reset
> the logging filter function when forking
> 
> * src/util/util.c: Reset log filter in fork
> ---
>  src/util/util.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/src/util/util.c b/src/util/util.c
> index 78ac168..db2b04d 100644
> --- a/src/util/util.c
> +++ b/src/util/util.c
> @@ -384,6 +384,7 @@ int virFork(pid_t *pid) {
>             get sent to stderr where they stand a fighting chance
>             of being seen / logged */
>          virSetErrorFunc(NULL, NULL);
> +        virSetErrorLogPriorityFunc(NULL);

ACK. (modulo the bigger issue that we can't safely use malloc to log
anything in the child in the first place, but that's pre-existing...)

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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