mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
crosvm: fix run_vm return values for plugin
BUG=none TEST=crosvm builds with plugin enabled Change-Id: Ic54550e59d3d3b0e7b09cd3f18496ca790d29f7d Reviewed-on: https://chromium-review.googlesource.com/922281 Commit-Ready: Stephen Barber <smbarber@chromium.org> Tested-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
8091a2a525
commit
ee0d67cc5e
1 changed files with 5 additions and 2 deletions
|
@ -378,10 +378,13 @@ fn run_vm(args: std::env::Args) -> std::result::Result<(), ()> {
|
||||||
#[cfg(feature = "plugin")]
|
#[cfg(feature = "plugin")]
|
||||||
Ok(()) if cfg.plugin.is_some() => {
|
Ok(()) if cfg.plugin.is_some() => {
|
||||||
match plugin::run_config(cfg) {
|
match plugin::run_config(cfg) {
|
||||||
Ok(_) => info!("crosvm and plugin have exited normally"),
|
Ok(_) => {
|
||||||
|
info!("crosvm and plugin have exited normally");
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("{}", e);
|
error!("{}", e);
|
||||||
return 1;
|
Err(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue