[libvirt] [PATCH] qemuProcessLaunch: Return earlier if spawning qemu failed

Ján Tomko jtomko at redhat.com
Wed Jun 19 17:56:21 UTC 2019


On Thu, May 23, 2019 at 11:03:29AM +0200, Michal Privoznik wrote:
>If spawning qemu fails then we report an error and proceed to
>writing status XML onto the disk. This is unnecessary as we are
>sure that the domain is not running.
>
>At the same time, if virPidFileReadPath() fails it returns
>-errno. Use it in the error message. It may explain what went
>wrong.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/qemu/qemu_process.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190619/216bc4f7/attachment-0001.sig>


More information about the libvir-list mailing list