mirror of
https://github.com/Twigpine/zero.git
synced 2026-11-11 23:40:28 -10:00
19 lines
314 B
Go
19 lines
314 B
Go
//go:build windows
|
|
|
|
package config
|
|
|
|
import (
|
|
"os/exec"
|
|
"strconv"
|
|
)
|
|
|
|
func configureCommandProcess(cmd *exec.Cmd) {}
|
|
|
|
func terminateCommandProcess(cmd *exec.Cmd) {
|
|
if cmd.Process == nil {
|
|
return
|
|
}
|
|
_ = exec.Command("taskkill", "/T", "/F", "/PID", strconv.Itoa(cmd.Process.Pid)).Run()
|
|
_ = cmd.Process.Kill()
|
|
}
|