Skip to content

Commit

Permalink
internal/crashmonitor: prepare for SetCrashOutput signature change
Browse files Browse the repository at this point in the history
The function is about to get a second parameter.
This shim will be removed later this week.

Updates golang/go#67182

Change-Id: I166adda831979b713d429504b57510506bfdff11
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/585378
Reviewed-by: Michael Matloob <matloob@golang.org>
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
adonovan authored and gopherbot committed May 15, 2024
1 parent 74e3e9f commit ac8fed8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/crashmonitor/crash_go123.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@

package crashmonitor

import "runtime/debug"
import (
"os"
"runtime/debug"
)

func init() {
setCrashOutput = debug.SetCrashOutput
setCrashOutput = func(f *os.File) error { return debug.SetCrashOutput(f) }
}

0 comments on commit ac8fed8

Please sign in to comment.