This commit is contained in:
Philipp Heckel 2022-06-21 11:43:26 -04:00
parent a160da3ad9
commit 26fda847ca
5 changed files with 75 additions and 1 deletions

View file

@ -1,8 +0,0 @@
package cmd
import "syscall"
func processExists(pid int) bool {
err := syscall.Kill(pid, syscall.Signal(0))
return err == nil
}