code wiki / (root) / nx_proc_kill.nx

nx_proc_kill.nx

buildroot/runtime/nx_proc_kill.nx

2146 B34 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic proc
docsdependenciesstructsconstsfunctions

about

nx_proc_kill.nx -- sovereign "kill by FULL /proc/<pid>/cmdline" CLI (retires pkill). Now composes the canonical nx_proc_ctl, FIXING the old /proc/<pid>/comm match that truncated long names to 15 chars and silently matched nothing (the 2026-06-29 gallery-login disaster). Target = argv[1], else the staging file nxpk_target.txt (the WOMB drops args, so that path stays). Refuses an empty target. Reports the HONEST killed count. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_proc_ctl.nx nx_gate.nx nx_proc_kill.nx

imports: nx_proc_ctl.nxnx_gate.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main pk_read_target sys_read gw sys_write gn sys_write ↻ sys_mmap nx_pctl_kill_by_cmdline proc_kill_by_name pc_slen sys_openat_rd sys_mmap ↻ sys_getdents64 dirent_reclen dirent_name pc_read_cmdline sys_openat_rd ↻ sys_read ↻ sys_close pc_contains nx_kill pc_atoi sys_close ↻ sys_munmap

structs

none

consts

none

functions

9func pk_read_target(out: *u8) -> i64
called by 1: main calls 1: sys_read
21func main(argc: i64, argv: *i64) -> i64