code wiki / _hdl_build / nx_gallery_keepalive.nx
nx_gallery_keepalive.nx
buildroot/runtime/_hdl_build/nx_gallery_keepalive.nx
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
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
structs
| none |
consts
| 10 | const GALX_MAGIC_2000: i64 = 2000 |
| 12 | const GALX_DAEMON: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/_hdl_build/nx_gallery_serve.elf" as *u8 |
functions
| 14 | func main() -> i64 |