respect context timeout in shim binary call
Signed-off-by: jerryzhuang <zhuangqhc@gmail.com>
This commit is contained in:
parent
158901756c
commit
7a10fd4fcc
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user