Skip to main content

Crate check_runner_sys

Crate check_runner_sys 

Source
Expand description

Unsafe syscall wrappers for check-runner process management. Each function includes a // SAFETY: justification block.

Functionsยง

kill_process_group
Send SIGKILL to an entire process group. SAFETY: pgid must be a valid process group ID owned by this session.
process_exists
Check if a process exists (kill with signal 0). Returns true if the process exists, false otherwise. SAFETY: pid must be a valid process ID.
remove_env
Remove an environment variable from the current process. Only used in test context. SAFETY: var must be a valid C string.
set_env
Set an environment variable in the current process. Only used in test context. SAFETY: var and value must be valid C strings.