Skip to content

Commit 909660e

Browse files
committed
process: use the unbuffered channel as the done signal
Signed-off-by: Iceber Gu <[email protected]>
1 parent 34780d6 commit 909660e

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)