Skip to content

Commit cb64dc8

Browse files
authored
Merge pull request #5401 from Iceber/use-unbuffered-channel
process: use the unbuffered channel as the done signal
2 parents 7b7a230 + 909660e commit cb64dc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/process/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (p *pidFile) Read() (int, error) {
172172
func waitTimeout(ctx context.Context, wg *sync.WaitGroup, timeout time.Duration) error {
173173
ctx, cancel := context.WithTimeout(ctx, timeout)
174174
defer cancel()
175-
done := make(chan struct{}, 1)
175+
done := make(chan struct{})
176176
go func() {
177177
wg.Wait()
178178
close(done)

0 commit comments

Comments
 (0)