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
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,12 @@ func getOpenvpnPath() string {
}
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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment