()
| 81 | } |
| 82 | |
| 83 | func (p *process) Wait() { |
| 84 | ticker := time.NewTicker(runningCheckInterval) |
| 85 | defer ticker.Stop() |
| 86 | |
| 87 | for range ticker.C { |
| 88 | if p.dead { |
| 89 | return |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func (p *process) Running() bool { |
| 95 | if pid := p.pid; pid > 0 { |
no test coverage detected