Skip to content

Commit 742ffad

Browse files
authored
Merge pull request #5800 from zhuangqh/binarycall-timeout
respect context timeout in shim binary call
2 parents 6d31cdd + 7a10fd4 commit 742ffad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v2/shim/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func Command(ctx context.Context, runtime, containerdAddress, containerdTTRPCAdd
100100
}
101101
}
102102

103-
cmd := exec.Command(cmdPath, args...)
103+
cmd := exec.CommandContext(ctx, cmdPath, args...)
104104
cmd.Dir = path
105105
cmd.Env = append(
106106
os.Environ(),

0 commit comments

Comments
 (0)