[PATCH] util: virdaemon: fix compilation on mingw

Michal Prívozník mprivozn at redhat.com
Mon Mar 30 08:28:46 UTC 2020


On 27. 3. 2020 18:40, Rafael Fonseca wrote:
> The daemons are not supported on Win32 and therefore were not compiled
> in that platform. However, with the daemon code sharing, all the code in
> utils *is* compiled and it failed because `waitpid`, `fork`, and
> `setsid` are not available. So, as before, let's not build them on
> Win32 and make the code more portable by using existing vir* wrappers.
> 
> Signed-off-by: Rafael Fonseca <r4f4rfs at gmail.com>
> ---
>  src/util/virdaemon.c | 46 +++++++++++++++++++++++++++++++++++++++-----
>  1 file changed, 41 insertions(+), 5 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

and pushed.

Michal




More information about the libvir-list mailing list