1
2
3
4
5
6
7
8
9
10
//! A module for working with processes.
//!
//! Since ArceOS is a unikernel, there is no concept of processes. The
//! process-related functions will affect the entire system, such as [`exit`]
//! will shutdown the whole system.

/// Shutdown the whole system.
pub fn exit(_exit_code: i32) -> ! {
    arceos_api::sys::ax_terminate();
}