Re: [PATCH 2/4] virutil: Do not use g_get_host_name() to obtain hostname

2021-03-10 Thread Ján Tomko
On a Tuesday in 2021, Michal Privoznik wrote: The problem is that g_get_host_name() caches the hostname in a thread local variable. Therefore, it doesn't reflect any subsequent hostname changes. While this might be acceptable for logs where the hostname is printed exactly once when the libvirtd s

[PATCH 2/4] virutil: Do not use g_get_host_name() to obtain hostname

2021-03-09 Thread Michal Privoznik
The problem is that g_get_host_name() caches the hostname in a thread local variable. Therefore, it doesn't reflect any subsequent hostname changes. While this might be acceptable for logs where the hostname is printed exactly once when the libvirtd starts up, it is not optimal for virGetHostnameIm