Let fx own signals and the exit code in the server example (closes #86) #94

Merged
clawbot merged 1 commits from issue-86-lifecycle-exit-signals into next 2026-10-04 11:02:19 +02:00
1 Commits
Author SHA1 Message Date
sneak a59b2b2cf6 Let fx own signals and the exit code in the server example (closes #86)
check / check (push) Waiting to run
The lifecycle example computed an exit code that never reached os.Exit,
installed its own SIGINT/SIGTERM handler beside the one fx's Run()
installs, and exited from a goroutine when Sentry failed to start, so
no stop hook ran. Now only fx handles those signals; a listen error
asks fx to shut down with exit code 1 through fx.Shutdowner; Sentry's
error is returned from the server's start hook; and the server's stop
hook shuts the HTTP server down within 5 seconds and fails when
requests are still running. A new paragraph says who owns signals and
the exit code. SIGPIPE is still ignored, now in main.

Model: opus-5-5
2026-10-04 08:15:17 +00:00