From 1bb947b2eb62f54dd7ff621f7e1c768c00edd1a7 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 7 Dec 2023 18:02:40 -0500 Subject: runtime/debug: SetCrashOutput sets the FD for fatal panics This feature makes it possible to record unhandled panics in any goroutine through a watchdog process (e.g. the same application forked+exec'd as a child in a special mode) that can process the panic report, for example by sending it to a crash-reporting system such as Go telemetry or Sentry. Fixes #42888 Change-Id: I5aa7be8f726bbc70fc650540bd1a14ab60c62ecb Reviewed-on: https://go-review.googlesource.com/c/go/+/547978 Reviewed-by: Michael Pratt LUCI-TryBot-Result: Go LUCI Auto-Submit: Alan Donovan Reviewed-by: Russ Cox --- api/next/42888.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 api/next/42888.txt (limited to 'api') diff --git a/api/next/42888.txt b/api/next/42888.txt new file mode 100644 index 0000000000..f9b8e1e475 --- /dev/null +++ b/api/next/42888.txt @@ -0,0 +1 @@ +pkg runtime/debug, func SetCrashOutput(*os.File) error #42888 -- cgit v1.2.3-54-g00ecf