nx_proc_ctl_rt.nx
buildroot/runtime/nx_proc_ctl_rt.nx
about
nx_proc_ctl.nx -- canonical sovereign process control: kill by FULL /proc/<pid>/cmdline. THE one true copy that
replaces (a) nx_proc_kill.nx's /proc/<pid>/comm match -- the 15-char-TRUNCATED field that silently matched nothing
for long names = the 2026-06-29 gallery-login disaster -- and (b) the buried-in-nx_hostctl hc_kill_by_cmdline.
IMPORTABLE (no main, no self-test). Matches "/"+name -> the binary PATH, never an arg mention (so it can't kill its
own command line); signal is a parameter (9=SIGKILL, 15=SIGTERM); returns the HONEST killed count (0 => nothing
matched => the op did nothing). Bounded reader (fixed reused buffers; no sys_read_file 4GiB-per-call leak).
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| none |
functions
| 11 | func nx_pctl_cmdl_has(buf: *u8, n: i64, name: *u8) -> i64 called by 1: nx_pctl_kill_by_cmdline |
| 27 | func nx_pctl_kill_by_cmdline(name: *u8, sig: i64) -> i64 |