mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
b11c6ffe31
* Download and launch orbit for the current device when starting preview * Add windows kill * Fix imports * Fix import * Disable secure directory checks on windows for now * Add missing import
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()
|
|
}
|