⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

exec_process

Function exec_process 

Source
pub fn exec_process(
    path: &str,
    argv: &[&str],
    envp: &[&str],
) -> Result<(), KernelError>
Expand description

Execute a new program in current process

Replaces the current process image with a new program. This function does not return on success - the new program begins execution.

Supports shebang (#!) scripts: if the file starts with #!, the interpreter specified on the shebang line is executed instead, with the script path prepended to the argument list. Also supports PATH search – if the path does not start with /, standard directories are searched.