If I have the PID of a process, is os.FindProcess enough to test for the existing of the process? I mean if it returns err can I assume that it\'s terminated (o
err
You can also just use syscall.Kill. It amounts to less code.
syscall.Kill
killErr := syscall.Kill(pid, syscall.Signal(0)) procExists := killErr == nil