refactor(watchdog): remove tcp socket connection and add local unix sock connection
This commit is contained in:
@@ -10,3 +10,13 @@ import (
|
||||
func configureWatchdogCommand(cmd *exec.Cmd) {
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
|
||||
}
|
||||
|
||||
func KillWatchdogProcess() error {
|
||||
watchdogName, err := getWatchdogBinaryName()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cmd := exec.Command("taskkill", "/IM", watchdogName, "/F")
|
||||
return cmd.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user