MCPcopy Create free account
hub / github.com/PasarGuard/node / verifyProcessDead

Function verifyProcessDead

backend/xray/process_unix.go:243–248  ·  view source on GitHub ↗

verifyProcessDead checks if a process is actually dead

(pid int)

Source from the content-addressed store, hash-verified

241
242// verifyProcessDead checks if a process is actually dead
243func 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
251func isProcessRunning(pid int) bool {

Callers 1

StopMethod · 0.70

Calls 1

isProcessRunningFunction · 0.70

Tested by

no test coverage detected