code wiki / _hdl_build / nx_gallery_keepalive.nx

nx_gallery_keepalive.nx

buildroot/runtime/_hdl_build/nx_gallery_keepalive.nx

2305 B46 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic gallery
docsdependenciesstructsconstsfunctions

about

nx_gallery_keepalive.nx -- SOVEREIGN Nishi supervisor for the gallery daemon. NO PowerShell, NO bash logic: the keepalive LOGIC is pure NishiLang (compiled by nx_cc_sovereign). It (a) holds the WSL VM alive -- a perpetually-running Nishi process keeps the VM from idle-shutting- down (the root cause of the daemon dying), and (b) supervises the gallery daemon: fork -> execve the daemon -> wait4; if the daemon ever exits/crashes, brief poll-sleep then relaunch. Last-mile launch only (incumbent used as launcher, never substrate): wsl.exe -e bash -lc 'cd <nxc2> && setsid ./runtime/_hdl_build/nx_gallery_keepalive.elf >log 2>&1 &' license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_gallery_keepalive.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_fork sys_exit nx_setsid sys_mmap sys_execve sys_wait4 sys_poll

structs

none

consts

10const GALX_MAGIC_2000: i64 = 2000
12const GALX_DAEMON: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/_hdl_build/nx_gallery_serve.elf" as *u8

functions

14func main() -> i64