mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
15 lines
210 B
Go
15 lines
210 B
Go
|
//go:build windows
|
||
|
// +build windows
|
||
|
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"os/exec"
|
||
|
"strconv"
|
||
|
)
|
||
|
|
||
|
func killPID(pid int) error {
|
||
|
kill := exec.Command("taskkill", "/T", "/F", "/PID", strconv.Itoa(pid))
|
||
|
return kill.Run()
|
||
|
}
|