From 9c0a9a40f48f1698b0fc7058d3bc682b81de1afd Mon Sep 17 00:00:00 2001 From: Alexander Andryashin Date: Sat, 2 Jun 2018 15:26:36 +0300 Subject: [PATCH] Stop process properly --- service/driver_unix.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }