From 7a10fd4fccb93a04b80352fea71fc1095d742b7f Mon Sep 17 00:00:00 2001 From: jerryzhuang Date: Tue, 27 Jul 2021 22:28:05 +0800 Subject: [PATCH] respect context timeout in shim binary call Signed-off-by: jerryzhuang --- runtime/v2/shim/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/v2/shim/util.go b/runtime/v2/shim/util.go index 52bfaa9ce..5905c0a0f 100644 --- a/runtime/v2/shim/util.go +++ b/runtime/v2/shim/util.go @@ -100,7 +100,7 @@ func Command(ctx context.Context, runtime, containerdAddress, containerdTTRPCAdd } } - cmd := exec.Command(cmdPath, args...) + cmd := exec.CommandContext(ctx, cmdPath, args...) cmd.Dir = path cmd.Env = append( os.Environ(),