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

Function verifyProcessDead

backend/xray/process_windows.go:166–171  ·  view source on GitHub ↗

verifyProcessDead checks if a process is actually dead

(pid int)

Source from the content-addressed store, hash-verified

164
165// verifyProcessDead checks if a process is actually dead
166func 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
174func isProcessRunning(pid int) bool {

Callers

nothing calls this directly

Calls 1

isProcessRunningFunction · 0.70

Tested by

no test coverage detected