Start the process
(ctx context.Context)
| 120 | |
| 121 | // Start the process |
| 122 | func (p *process) Start(ctx context.Context) error { |
| 123 | _, err := p.shim.task.Start(ctx, &task.StartRequest{ |
| 124 | ID: p.shim.ID(), |
| 125 | ExecID: p.id, |
| 126 | }) |
| 127 | if err != nil { |
| 128 | return errgrpc.ToNative(err) |
| 129 | } |
| 130 | return nil |
| 131 | } |
| 132 | |
| 133 | // Wait on the process to exit and return the exit status and timestamp |
| 134 | func (p *process) Wait(ctx context.Context) (*runtime.Exit, error) { |