Skip to content
Snippets Groups Projects
Unverified Commit 2fd367a0 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[feat] handle error during kill

parent 999cea13
Branches
Tags
1 merge request!82[pkg] fix osx flat package
...@@ -88,7 +88,12 @@ func getOpenvpnPath() string { ...@@ -88,7 +88,12 @@ func getOpenvpnPath() string {
} }
func kill(cmd *exec.Cmd) error { func kill(cmd *exec.Cmd) error {
return cmd.Process.Signal(os.Interrupt) log.Printf("Sending kill signal to pid: %v", cmd.Process.Pid)
err := cmd.Process.Signal(os.Interrupt)
if err != nil {
return err
}
return nil
} }
func firewallStart(gateways []string) error { func firewallStart(gateways []string) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment