mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user