Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RUNTIME_DEBUG_MONITOR (0.25 sec)

  1. src/runtime/debug/example_monitor_test.go

    //
    // This function re-executes the same executable as a child process,
    // in a special mode. In that mode, the call to monitor will never
    // return.
    func monitor() {
    	const monitorVar = "RUNTIME_DEBUG_MONITOR"
    	if os.Getenv(monitorVar) != "" {
    		// This is the monitor (child) process.
    		log.SetFlags(0)
    		log.SetPrefix("monitor: ")
    
    		crash, err := io.ReadAll(os.Stdin)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top