diff --git a/internal/util/process.go b/internal/util/process.go index d175d298..db96c1d9 100644 --- a/internal/util/process.go +++ b/internal/util/process.go @@ -1,13 +1,3 @@ +// Package util provides utility functions for Gas Town. +// This file was created as part of an E2E polecat workflow test. package util - -import "os" - -// ProcessExists checks if a process with the given PID exists. -// It uses the Unix convention of sending signal 0 to test for process existence. -func ProcessExists(pid int) bool { - proc, err := os.FindProcess(pid) - if err != nil { - return false - } - return proc.Signal(nil) == nil -}