浏览代码

Revert "Propagate context to exec delete"

This reverts commit b6430ba41388f0300ceea95c10738cbe1a9a7b10.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Andrew Hsu 6 年之前
父节点
当前提交
a9ae6c7547
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
 	}