Add LoadProcess api to Task
Fixes #1374 This adds a `LoadProcess` api to load existing exec'd processes from a task. It allows reattaching of IO and waiting on the process. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -11,7 +11,6 @@ import (
|
||||
"github.com/containerd/containerd/errdefs"
|
||||
"github.com/containerd/containerd/runtime"
|
||||
"github.com/containerd/containerd/typeurl"
|
||||
specs "github.com/opencontainers/runtime-spec/specs-go"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
@@ -77,7 +76,6 @@ type process struct {
|
||||
task *task
|
||||
pid uint32
|
||||
io IO
|
||||
spec *specs.Process
|
||||
}
|
||||
|
||||
func (p *process) ID() string {
|
||||
|
||||
Reference in New Issue
Block a user