Return fifo paths from Shim

This allows attach of existing fifos to be done without any information
stored on the client side.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-01 13:36:44 -07:00
parent 43fb19e01c
commit 00734ab04a
16 changed files with 682 additions and 191 deletions

View File

@@ -15,7 +15,10 @@ type process struct {
}
func (p *process) State(ctx context.Context) (plugin.State, error) {
return p, nil
return plugin.State{
Pid: p.Pid(),
Status: p.Status(),
}, nil
}
func (p *process) Kill(ctx context.Context, sig uint32, all bool) error {