mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
This PR improves cross-platform compatibility. It solves two main issues: 1. inconsistent line endings 2. inconsistent path separators Path separators, in installer, needs to target two different environments: 1. the OS where the installer runs 2. the OS where the injected files been used This PR unified path separators used in 2 to be UNIX path separators, while in 1 to be platform-dependant. Ref: https://forum.golangbridge.org/t/filepath-join-or-path-join/13479 Known issues: The spawn processes, including etcd.exe, kube-apiserver.exe, and openshift-installer.exe, will not exit once installation aborted or completed. Users need to manually terminate those processes in task manager.
20 lines
255 B
Go
20 lines
255 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package process
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
func setSysProcAttr(cmd *exec.Cmd) {
|
|
}
|
|
|
|
func stopProcess(ps *State) error {
|
|
return ps.Cmd.Process.Kill()
|
|
}
|
|
|
|
func killProcess(ps *State) error {
|
|
return ps.Cmd.Process.Kill()
|
|
}
|