verifyProcessDead checks if a process is actually dead
(pid int)
| 241 | |
| 242 | // verifyProcessDead checks if a process is actually dead |
| 243 | func verifyProcessDead(pid int) error { |
| 244 | if !isProcessRunning(pid) { |
| 245 | return nil |
| 246 | } |
| 247 | return fmt.Errorf("process %d is still running", pid) |
| 248 | } |
| 249 | |
| 250 | // isProcessRunning checks if a process is still running |
| 251 | func isProcessRunning(pid int) bool { |
no test coverage detected