Selaa lähdekoodia

Revert "Propagate context to exec delete"

This reverts commit b6430ba41388f0300ceea95c10738cbe1a9a7b10.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Andrew Hsu 6 vuotta sitten
vanhempi
commit
a9ae6c7547
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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(ctx)
+		p.Delete(context.Background())
 		ctr.deleteProcess(processID)
 		return -1, wrapError(err)
 	}