code wiki / (root) / nx_daemon_gate.nx

nx_daemon_gate.nx

buildroot/runtime/nx_daemon_gate.nx

2113 B40 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic daemon
docsdependenciesstructsconstsfunctions

about

nx_daemon_gate.nx -- proves the sovereign detached-spawn primitive (fork + setsid) that nx_daemon's daemon_spawn uses: a forked child detaches into a NEW session, does work (writes a marker), and exits clean; the parent reaps it and verifies. (daemon_spawn's execve is the same sys_execve nx_hostctl runs in production.) license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_daemon.nx nx_fio.nx nx_gate.nx nx_daemon_gate.nx

imports: nx_daemon.nxnx_fio.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 gw sys_write fio_unlink gn sys_write ↻ sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ fio_exists sys_mmap ↻ sys_fstatat

structs

none

consts

none

functions

8func main() -> i64