mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
xous: make terminate_process divergent
This allows for terminating a process when something goes wrong. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
4830f3eb2c
commit
03bed02393
1 changed files with 2 additions and 1 deletions
|
|
@ -1318,8 +1318,9 @@ pub fn send_message(connection: CID, message: Message) -> core::result::Result<R
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn terminate_process() {
|
pub fn terminate_process() -> ! {
|
||||||
rsyscall(SysCall::TerminateProcess).expect("terminate_process returned an error");
|
rsyscall(SysCall::TerminateProcess).expect("terminate_process returned an error");
|
||||||
|
panic!("process didn't terminate");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return execution to the kernel. This function may return at any time,
|
/// Return execution to the kernel. This function may return at any time,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue