Skip to content

Commit ea995a9

Browse files
internal/crashmonitor: add the options parameter to the setCrashOutput
1 parent fe70498 commit ea995a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/crashmonitor/monitor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ import (
2626
// TODO(adonovan): eliminate once go1.23+ is assured.
2727
func Supported() bool { return setCrashOutput != nil }
2828

29-
var setCrashOutput func(*os.File) error // = runtime.SetCrashOutput on go1.23+
29+
var setCrashOutput func(*os.File, debug.CrashOptions) error // = runtime.SetCrashOutput on go1.23+
3030

3131
// Parent sets up the parent side of the crashmonitor. It requires
3232
// exclusive use of a writable pipe connected to the child process's stdin.
3333
func Parent(pipe *os.File) {
3434
writeSentinel(pipe)
3535
// Ensure that we get pc=0x%x values in the traceback.
3636
debug.SetTraceback("system")
37-
setCrashOutput(pipe)
37+
setCrashOutput(pipe, debug.CrashOptions{})
3838
}
3939

4040
// Child runs the part of the crashmonitor that runs in the child process.

0 commit comments

Comments
 (0)