]> xenbits.xensource.com Git - libvirt.git/commit
qemuProcessLaunch: Return earlier if spawning qemu failed
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 23 May 2019 09:00:27 +0000 (11:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Jun 2019 08:29:54 +0000 (10:29 +0200)
commit7979066b699d405576d4e499483ed4ef76a9b872
tree38debcbb17a58157753d8c26c6d2cd3d92c1f35c
parent73713a54a8ed641b0b835bda2bc3f78bef457b09
qemuProcessLaunch: Return earlier if spawning qemu failed

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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c