mirror of
https://github.com/fleetdm/fleet
synced 2026-04-28 08:57:30 +00:00
* 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
14 lines
210 B
Go
14 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()
|
|
}
|