// Bun busy-spins on a top-level promise that can never settle when no other event-loop handle // remains. Twin CLIs use this timer-backed hold after starting their servers so an unexpectedly // closed server cannot turn an otherwise idle process into a full-core loop. const IDLE_SLEEP_MS = 86_400_000; export async function keepProcessAlive(): Promise { while (true) await new Promise(resolve => setTimeout(resolve, IDLE_SLEEP_MS)); }