nx_daemon.nx
buildroot/runtime/nx_daemon.nx
about
nx_daemon.nx -- canonical sovereign detached-spawn: launch an elf as a daemon that survives the parent (new
session via setsid), the sovereign run_in_background. Importable (no main). fork -> child setsid()s then execve()s;
parent gets the child pid. Same sys_fork/nx_setsid/sys_execve nx_hostctl uses to supervise its NAS daemons.
license_tier: ORIGINAL
dependencies 1 imports · 4 importers
imports: nx_syscalls.nx
imported by: nx_daemon_gate.nxnx_daemon_run.nxnx_mineworld_mp_up.nxnx_servicectl.nx
structs
| none |
consts
| none |
functions
| 9 | func daemon_spawn(elf: *u8, argv: *i64) -> i64 |
| 26 | func daemon_argv0(elf: *u8, argv: *i64) -> i64 { argv[0] = elf as i64; argv[1] = 0; return 0 } |