publish_unix.go 205 B

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