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

package cmd

import (
	"os"
	"syscall"
)

// replaceProcess replaces the current process with the given command (Unix exec).
// PyCharm and other IDEs see the final process directly.
func replaceProcess(path string, args []string) error {
	return syscall.Exec(path, args, os.Environ())
}