Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/cmd/go/internal/vcweb/script.go

    	case "windows":
    		return "USERPROFILE"
    	case "plan9":
    		return "home"
    	default:
    		return "HOME"
    	}
    }
    
    // tempEnvName returns the environment variable used by os.TempDir
    // to locate the default directory for temporary files.
    func tempEnvName() string {
    	switch runtime.GOOS {
    	case "windows":
    		return "TMP"
    	case "plan9":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 08 19:37:03 UTC 2022
    - 9K bytes
    - Viewed (0)
  2. src/cmd/go/go_unix_test.go

    	// with a signal they might fail to clean up some temp files, and we don't
    	// want that to cause an "unexpected files" failure at the end of the run.
    	cmd.Env = append(slices.Clip(tg.env), tempEnvName()+"="+t.TempDir())
    
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Setpgid: true,
    	}
    	cmd.Cancel = func() error {
    		pgid := cmd.Process.Pid
    		return syscall.Kill(-pgid, syscall.SIGINT)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top