From b6430ba41388f0300ceea95c10738cbe1a9a7b10 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 14 Dec 2018 11:56:23 -0500 Subject: [PATCH] Propagate context to exec delete Signed-off-by: Michael Crosby (cherry picked from commit 96e0ba1afb228b48aa6e08a90cfc665083d24ccc) Signed-off-by: Andrew Hsu --- libcontainerd/client_daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainerd/client_daemon.go b/libcontainerd/client_daemon.go index cb9cb43a7316f..7937c96847fe5 100644 --- a/libcontainerd/client_daemon.go +++ b/libcontainerd/client_daemon.go @@ -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) }