Merge pull request #5974 from claudiubelu/hanging-task-delete-fix

task delete: Closes task IO before waiting
This commit is contained in:
Phil Estes
2021-09-15 11:30:23 -04:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ func openPipe(ctx context.Context, fn string, flag int, perm os.FileMode) (io.Re
}
p.con = c
}()
go func() {
<-ctx.Done()
p.Close()
}()
return p, nil
}