verifyProcessDead checks if a process is actually dead
(pid int)
| 164 | |
| 165 | // verifyProcessDead checks if a process is actually dead |
| 166 | func verifyProcessDead(pid int) error { |
| 167 | if !isProcessRunning(pid) { |
| 168 | return nil |
| 169 | } |
| 170 | return fmt.Errorf("process %d is still running", pid) |
| 171 | } |
| 172 | |
| 173 | // isProcessRunning checks if a process is still running |
| 174 | func isProcessRunning(pid int) bool { |
nothing calls this directly
no test coverage detected