Skip to content

Commit

Permalink
Bugfix, get "no such process" with the process id negated
Browse files Browse the repository at this point in the history
  • Loading branch information
suzaku committed Jan 11, 2022
1 parent 9dc02fc commit d53fda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/util_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func (e *Engine) killCmd(cmd *exec.Cmd) (pid int, err error) {

if e.config.Build.SendInterrupt {
// Sending a signal to make it clear to the process that it is time to turn off
if err = syscall.Kill(-pid, syscall.SIGINT); err != nil {
if err = syscall.Kill(pid, syscall.SIGINT); err != nil {
e.mainDebug("trying to send signal failed %v", err)
return
}
Expand Down

0 comments on commit d53fda4

Please sign in to comment.