publish_unix.go 189 B

12345678910
  1. // +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. }