浏览代码

Propagate context to exec delete

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Michael Crosby 6 年之前
父节点
当前提交
96e0ba1afb
共有 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(context.Background())
+		p.Delete(ctx)
 		ctr.deleteProcess(processID)
 		return -1, wrapError(err)
 	}