Re: [PATCH 01/12] qemu_process: check for correct return value while starting domain

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

 



On Tue, Mar 15, 2016 at 14:15:57 +0100, Pavel Hrdina wrote:
> Function qemuProcessLaunch returns '-2' in case there was an error and
> we need to cleanup labels.
> 
> Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
> ---
>  src/qemu/qemu_process.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
> index 14e4629..3c496cb 100644
> --- a/src/qemu/qemu_process.c
> +++ b/src/qemu/qemu_process.c
> @@ -5405,7 +5405,7 @@ qemuProcessStart(virConnectPtr conn,
>  
>      if ((rv = qemuProcessLaunch(conn, driver, vm, asyncJob, incoming,
>                                  snapshot, vmop, flags)) < 0) {
> -        if (rv == -1)
> +        if (rv == -2)
>              relabel = true;
>          goto stop;
>      }

Oops. ACK.

Jirka

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