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

Commit

Permalink
Merge pull request #458 from aandryashin/master
Browse files Browse the repository at this point in the history
Stop process properly
  • Loading branch information
vania-pooh authored Jun 2, 2018
2 parents de18b32 + 9c0a9a4 commit 7bdec69
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 7bdec69

Please sign in to comment.