nx_motion_smoke.nx
buildroot/runtime/nx_motion_smoke.nx
about
nx_motion_smoke.nx -- DIAGNOSE AND GATE THE /motion DAEMON'S LISTEN (2026-09-06, rung MO14 core).
The deploy health probe reports NEVER-LISTENED but hides the daemon's OWN stderr, and a daemon cannot be
nx_job_run (jlb_denied) to capture it. This oneshot forks the daemon BINARY on a throwaway port with a
bounded watchdog (gk_run_capture_ms kills it at the deadline), captures its stdout+stderr, and reports
whether it bound -- so 'does the daemon listen' becomes a runnable, gateable check instead of a deploy gamble.
nx_motion_smoke [elf] [port] elf defaults to ./nx_motion_serve.elf.new, port to a throwaway 28139
exit: 0 LISTENED | 3 BIND-FAILED (port taken / bind refused) | 4 NO-OUTPUT (crashed before printing)
Its name carries no control-plane stem, so the async launcher admits it; it binds nothing itself.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_gatekit_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 13 | const SM_CAP: i64 = 65536 |
| 14 | const SM_MS: i64 = 2500 |
functions
| 16 | func smw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 17 | func smn(v: i64) -> i64 |
| 30 | func main(argc: i64, argv: *i64) -> i64 |