Öffentliche Dateiansicht: Raw-Dateien, Tree, Releases und Issues sind ohne Login verfügbar.
cmd/exec_windows.go Raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
//go:build windows

package cmd

import (
	"os"
	"os/exec"
)

// replaceProcess runs the command as a child process on Windows (no syscall.Exec).
func replaceProcess(path string, args []string) error {
	c := exec.Command(path, args[1:]...)
	c.Stdin = os.Stdin
	c.Stdout = os.Stdout
	c.Stderr = os.Stderr
	return c.Run()
}