Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit 49ca740

Browse files
authored
Merge pull request #1159 from Random-Liu/cherrypick-#1156-release-1.2
Cherrypick #1156 release 1.2
2 parents cdbb238 + 7a5e210 commit 49ca740

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/server/container_execsync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (c *criService) execInContainer(ctx context.Context, id string, opts execOp
131131
defer func() {
132132
deferCtx, deferCancel := ctrdutil.DeferContext()
133133
defer deferCancel()
134-
if _, err := process.Delete(deferCtx); err != nil {
134+
if _, err := process.Delete(deferCtx, containerd.WithProcessKill); err != nil {
135135
logrus.WithError(err).Errorf("Failed to delete exec process %q for container %q", execID, id)
136136
}
137137
}()

0 commit comments

Comments
 (0)