Debian Codegraph @

cmd/publish_unix.go

raw
1 //go:build darwin || linux || dragonfly || freebsd || netbsd || openbsd
2
3 package cmd
4
5 import "syscall"
6
7 func processExists(pid int) bool {
8 err := syscall.Kill(pid, syscall.Signal(0))
9 return err == nil
10 }