Files
ntfy/cmd/publish_unix.go
binwiederhier 152a6b96d1 Run go fix
2025-12-23 20:23:48 -05:00

11 lines
205 B
Go

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