Today openCell (src/apps/contain.ts) starts the egress proxy (startEgress), the loopback relays and the inbound relay inside the host process, and bwrap runs with --die-with-parent; the cell's stdout/stderr are pipes the host reads. So a host restart (stopCellChildren, src/main.ts drain) is the only way the cell can end, and it cannot survive one. Step 1 of #13750: a small supervisor per cell (own process group, setsid, no die-with-parent) that owns those sockets and the log file; the host talks to it, not to the cell. Test: kill the host side, the cell and its listener stay up.
Today
openCell(src/apps/contain.ts) starts the egress proxy (startEgress), the loopback relays and the inboundrelayinside the host process, and bwrap runs with--die-with-parent; the cell's stdout/stderr are pipes the host reads. So a host restart (stopCellChildren, src/main.ts drain) is the only way the cell can end, and it cannot survive one. Step 1 of #13750: a small supervisor per cell (own process group,setsid, no die-with-parent) that owns those sockets and the log file; the host talks to it, not to the cell. Test: kill the host side, the cell and its listener stay up.Files: src/apps/contain.ts, src/apps/egress.ts, src/spawn/cell.ts