Browse Source

Merge pull request #139 from andrewhsu/ctxt

[18.09] Propagate context to exec delete
Andrew Hsu 6 years ago
parent
commit
cc7773c787
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libcontainerd/client_daemon.go

+ 1 - 1
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)
 	}