code wiki / _hdl_build / nx_drill_hang.nx

nx_drill_hang.nx

buildroot/runtime/_hdl_build/nx_drill_hang.nx

816 B18 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_drill_hang.nx -- deterministic HANG FIXTURE for the crash-drill gate (nx_revive_gate). Exists ONLY so the drill can prove nx_boot_revive's watchdog reaps a hung organ run. Unarmed (no /tmp/nx_drill_hang_arm file): exits 0 immediately, so the normal build-and-run lane (nx_sov_build_run) completes instantly. Armed: sleeps in a BOUNDED loop (never a permanent zombie even if leaked) until the watchdog SIGKILLs it. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_drill_hang.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_rd sys_close sys_sleep_ms sys_mmap sys_munmap

structs

none

consts

9const DH_BOUND_SEC: i64 = 600 // upper bound on the armed hang; drill kills at its B budget long before

functions

11func main() -> i64