Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetCrashOutput (0.14 sec)

  1. src/runtime/runtime.go

    	// If crashing, print a copy to the SetCrashOutput fd.
    	gp := getg()
    	if gp != nil && gp.m.dying > 0 ||
    		gp == nil && panicking.Load() > 0 {
    		if fd := crashFD.Load(); fd != ^uintptr(0) {
    			write(fd, unsafe.Pointer(data), n)
    		}
    	}
    }
    
    // crashFD is an optional file descriptor to use for fatal panics, as
    // set by debug.SetCrashOutput (see #42888). If it is a valid fd (not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/start.go

    	"golang.org/x/telemetry/internal/upload"
    )
    
    // Config controls the behavior of [Start].
    type Config struct {
    	// ReportCrashes, if set, will enable crash reporting.
    	// ReportCrashes uses the [debug.SetCrashOutput] mechanism, which is a
    	// process-wide resource.
    	// Do not make other calls to that function within your application.
    	// ReportCrashes is a non-functional unless the program is built with go1.23+.
    	ReportCrashes bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top