Skip to content

Commit 7cc1302

Browse files
authored
Merge pull request #2762 from estesp/cherrypick-exec-exit-chan-size-pr
[release/1.1] cherry-pick: Increase reaper buffer size
2 parents a19509e + 966fc1a commit 7cc1302

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

reaper/reaper.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
// ErrNoSuchProcess is returned when the process no longer exists
3232
var ErrNoSuchProcess = errors.New("no such process")
3333

34-
const bufferSize = 32
34+
const bufferSize = 2048
3535

3636
// Reap should be called when the process receives an SIGCHLD. Reap will reap
3737
// all exited processes and close their wait channels
@@ -47,7 +47,6 @@ func Reap() error {
4747
Status: e.Status,
4848
}
4949
}
50-
5150
}
5251
Default.Unlock()
5352
return err

0 commit comments

Comments
 (0)