()
| 29 | } |
| 30 | |
| 31 | func (p *process) Wait() (int, error) { |
| 32 | p.doneL.L.Lock() |
| 33 | |
| 34 | for !p.done { |
| 35 | p.doneL.Wait() |
| 36 | } |
| 37 | |
| 38 | defer p.doneL.L.Unlock() |
| 39 | |
| 40 | return p.exitStatus, p.exitErr |
| 41 | } |
| 42 | |
| 43 | func (p *process) SetTTY(tty garden.TTYSpec) error { |
| 44 | return p.processInputStream.SetTTY(tty) |