Skip to content

Commit

Permalink
Merge pull request #154 from mrunalp/signal_fix
Browse files Browse the repository at this point in the history
signal: Fix leak
  • Loading branch information
crosbymichael committed Jul 27, 2015
2 parents 6c86daa + 9d281a5 commit 6ee61ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions signals.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func (h *signalHandler) reap() (exits []exit, err error) {
}
return nil, err
}
if pid <= 0 {
return exits, nil
}
exits = append(exits, exit{
pid: pid,
status: utils.ExitStatus(ws),
Expand Down

0 comments on commit 6ee61ae

Please sign in to comment.