telemetrygolang.org/x/telemetry/internal/crashmonitor Index | Files

package crashmonitor

import "golang.org/x/telemetry/internal/crashmonitor"

Index

Functions

func Child

func Child()

Child runs the part of the crashmonitor that runs in the child process. It expects its stdin to be connected via a pipe to the parent which has run Parent.

func Parent

func Parent(pipe *os.File)

Parent sets up the parent side of the crashmonitor. It requires exclusive use of a writable pipe connected to the child process's stdin.

func Supported

func Supported() bool

Supported reports whether the runtime supports runtime/debug.SetCrashOutput.

TODO(adonovan): eliminate once go1.23+ is assured.

Source Files

crash_go123.go monitor.go

Version
v0.0.0-20250214215356-6f9b61db478c (latest)
Published
Feb 14, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
3 days ago

Tools for package owners.