Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Stop process properly
Browse files Browse the repository at this point in the history
  • Loading branch information
aandryashin committed Jun 2, 2018
1 parent de18b32 commit 9c0a9a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/driver_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 9c0a9a4

Please sign in to comment.