Skip to content

Commit 7a10fd4

Browse files
committed
respect context timeout in shim binary call
Signed-off-by: jerryzhuang <[email protected]>
1 parent 1589017 commit 7a10fd4

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)