signal: Fix leak
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
6c86daa6c9
commit
9d281a503e
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue