1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Unsafe syscall wrappers for check-runner process management.
//! Each function includes a // SAFETY: justification block.
/// Send SIGKILL to an entire process group.
/// SAFETY: pgid must be a valid process group ID owned by this session.
/// 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.
/// Set an environment variable in the current process.
/// Only used in test context.
/// SAFETY: var and value must be valid C strings.
/// Remove an environment variable from the current process.
/// Only used in test context.
/// SAFETY: var must be a valid C string.