diff --git a/service/driver_unix.go b/service/driver_unix.go index dbd8ef35..e0ff87f2 100644 --- a/service/driver_unix.go +++ b/service/driver_unix.go @@ -8,5 +8,7 @@ import ( ) func stopProc(cmd *exec.Cmd) error { - return cmd.Process.Signal(syscall.SIGINT) + exitCode := cmd.Process.Signal(syscall.SIGINT) + cmd.Wait() + return exitCode }