mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 11:36:56 +00:00
runtime-rs: fix misleading log message
get_vmm_master_tid() currently returns an error with the message "cannot get qemu pid (though it seems running)" when it finds a valid QemuInner::qemu_process instance but fails to extract the PID out of it. This condition however in fact means that a qemu child process was running (otherwise QemuInner::qemu_process would be None) but isn't anymore (id() returns None). Signed-off-by: Pavel Mores <pmores@redhat.com>
This commit is contained in:
parent
af5492e773
commit
6a4919eeb9
@ -231,7 +231,7 @@ impl QemuInner {
|
||||
);
|
||||
Ok(qemu_pid)
|
||||
} else {
|
||||
Err(anyhow!("cannot get qemu pid (though it seems running)"))
|
||||
Err(anyhow!("QemuInner::get_vmm_master_tid(): qemu process isn't running (likely stopped already)"))
|
||||
}
|
||||
} else {
|
||||
Err(anyhow!("qemu process not running"))
|
||||
|
Loading…
Reference in New Issue
Block a user