[−][src]Function sunrise_kernel::syscalls::terminate_process
pub fn terminate_process(hnd: u32) -> Result<(), UserspaceError>
Kills the given process, terminating the execution of all of its thread and putting its state to Exiting/Exited.
Returns an error if used on a process that wasn't started.
Errors
InvalidState
- The process wasn't started (it is in Created or CreatedAttached state).
InvalidHandle
- The given handle is invalid or not a process.