Skip to content

Commit

Permalink
Merge pull request #1554 from kiashok/terminateOnTimeout
Browse files Browse the repository at this point in the history
[release/0.9] Call container.Terminate() on shutdown timeouts
  • Loading branch information
katiewasnothere authored Oct 31, 2022
2 parents 32d7d56 + cdc012c commit e0b7d33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/containerd-shim-runhcs-v1/task_hcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,8 @@ func (ht *hcsTask) close(ctx context.Context) {
log.G(ctx).WithError(err).Error("failed to wait for container shutdown")
}
case <-t.C:
log.G(ctx).WithError(hcs.ErrTimeout).Error("failed to wait for container shutdown")
err = hcs.ErrTimeout
log.G(ctx).WithError(err).Error("failed to wait for container shutdown")
}
}

Expand Down

0 comments on commit e0b7d33

Please sign in to comment.