Merge pull request #139 from andrewhsu/ctxt

[18.09] Propagate context to exec delete
Upstream-commit: cc7773c787f400e7b11472878c3a1e55823e9c46
Component: engine
This commit is contained in:
Andrew Hsu
2018-12-16 11:14:58 +00:00
committed by GitHub

View File

@ -384,7 +384,7 @@ func (c *client) Exec(ctx context.Context, containerID, processID string, spec *
defer close(stdinCloseSync)
if err = p.Start(ctx); err != nil {
p.Delete(context.Background())
p.Delete(ctx)
ctr.deleteProcess(processID)
return -1, wrapError(err)
}