1 Commits
Author SHA1 Message Date
alex fc838b95e9 run: a signal to summit stops the game and the engine and puts the display mode back; clips go to Videos/Summit/<game>
- summit-core::signals catches SIGTERM, SIGINT and SIGHUP (only an atomic store in the handler). supervise() and the
  new wait_or_stop() poll it, stop the engine and the game, and summit run leaves through its normal path, so the
  display mode is restored. Exits 128+signal. A try_wait error in supervise() now stops both before returning.
- Output in the Run arm can no longer panic on a closed terminal (after SIGHUP).
- summit run --title (the launcher passes the library title) is given to the engine as SUMMIT_GAME; clips are saved
  in Videos/Summit/<game>/ named '<game> <date>.mp4'. The toast shows the path with this system's separator, and
  before & after videos say 'Summit' instead of 'SmoovPlay'.

Checked: kill -TERM / -HUP / -INT to summit alone stopped a game script and its child (exit 143/129/130); with
--enhance and a stand-in engine, both stopped and the engine saw SUMMIT_GAME. Display restore after a signal was not
run (no X display here).
2026-11-24 15:51:20 +00:00