...

Package crashmonitor

import "cmd/vendor/golang.org/x/telemetry/internal/crashmonitor"
Overview
Index

Overview ▾

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.