pub fn stop(&mut self, exit_code: i32) {
        info!("Vmm is stopping.");

        //if let Some(observer) = self.events_observer.as_mut() {
        //    if let Err(e) = observer.on_vmm_stop() {
        //        warn!("{}", Error::VmmObserverTeardown(e));
        //    }
        //}

        builder::SerialStdin::restore();

        // Exit from Firecracker using the provided exit code. Safe because we're terminating
        // the process anyway.
        unsafe {
            libc::_exit(exit_code);
        }
    }
/// Waits for all vCPUs to exit and terminates the Firecracker process.
Waits for all vCPUs to exit and terminates the Firecracker process.
Waits for all vCPUs to exit and terminates the Firecracker process .
pub fn stop(&mut self, exit_code: i32) {
        info!("Vmm is stopping.");
        //if let Some(observer) = self.events_observer.as_mut() {
        //    if let Err(e) = observer.on_vmm_stop() {
        //        warn!("{}", Error::VmmObserverTeardown(e));
        //    }
        //}
        builder::SerialStdin::restore();
        // Exit from Firecracker using the provided exit code. Safe because we're terminating
        // the process anyway.
        unsafe {
            libc::_exit(exit_code);
        }
    }
pub fn stop ( & mut self , exit_code : i32 ) { info ! ( " " ) ; //if let Some(observer) = self.events_observer.as_mut() { //    if let Err(e) = observer.on_vmm_stop() { //        warn!("{}", Error::VmmObserverTeardown(e)); //    } //} builder :: SerialStdin :: restore ( ) ; // Exit from Firecracker using the provided exit code. Safe because we're terminating // the process anyway. unsafe { libc :: _exit ( exit_code ) ; } }
Waits for all vCPUs to exit and terminates the Firecracker process.
Waits for all vCPUs to exit and terminates the Firecracker process .
&mut self
exit_code
i32