axstd/process.rs
1//! A module for working with processes.
2//!
3//! Since ArceOS is a unikernel, there is no concept of processes. The
4//! process-related functions will affect the entire system, such as [`exit`]
5//! will shutdown the whole system.
6
7/// Shutdown the whole system.
8pub fn exit(_exit_code: i32) -> ! {
9 arceos_api::sys::ax_terminate();
10}