Add CloseStdin to exec Process
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
9890bed1e1
commit
1db752bca8
@ -88,3 +88,11 @@ func (p *process) Wait(ctx context.Context) (uint32, error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (p *process) CloseStdin(ctx context.Context) error {
|
||||
_, err := p.task.client.TaskService().CloseStdin(ctx, &execution.CloseStdinRequest{
|
||||
ContainerID: p.task.containerID,
|
||||
Pid: p.pid,
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user