Wait waits for the process to exit. Wait releases any resources associated with the Process
()
| 128 | // Wait waits for the process to exit. |
| 129 | // Wait releases any resources associated with the Process |
| 130 | func (p *Process) Wait() (*os.ProcessState, error) { |
| 131 | if p.ops == nil { |
| 132 | return nil, errInvalidProcess |
| 133 | } |
| 134 | return p.ops.wait() |
| 135 | } |
| 136 | |
| 137 | // Pid returns the process ID |
| 138 | func (p *Process) Pid() (int, error) { |