diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/helper/darwin.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/helper/darwin.go b/pkg/helper/darwin.go index a1e1f00..f291322 100644 --- a/pkg/helper/darwin.go +++ b/pkg/helper/darwin.go @@ -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 { |