mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
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:
parent
74a21f24e1
commit
425841a4fe
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user