vm: Do not explictly exit on reset

Instead return from the control_loop() and calling function cleanly.
This is helpful for the testing framework as that means we can launch
multiple VMs in a row.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-05-28 19:44:07 +01:00
parent 74a21f24e1
commit 425841a4fe

View File

@ -691,10 +691,7 @@ impl<'a> Vm<'a> {
.set_canon_mode()
.map_err(Error::SetTerminalCanon)?;
// Safe because we're terminating the process anyway.
unsafe {
libc::_exit(0);
}
return Ok(());
}
EpollDispatch::Stdin => {
let mut out = [0u8; 64];