We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b7a230 + 909660e commit cb64dc8Copy full SHA for cb64dc8
1 file changed
pkg/process/utils.go
@@ -172,7 +172,7 @@ func (p *pidFile) Read() (int, error) {
172
func waitTimeout(ctx context.Context, wg *sync.WaitGroup, timeout time.Duration) error {
173
ctx, cancel := context.WithTimeout(ctx, timeout)
174
defer cancel()
175
- done := make(chan struct{}, 1)
+ done := make(chan struct{})
176
go func() {
177
wg.Wait()
178
close(done)
0 commit comments