1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-24 04:09:13 +01:00
ntfy/cmd/publish_unix.go

12 lines
261 B
Go
Raw Normal View History

2022-08-31 23:49:08 +02:00
//go:build darwin || linux || dragonfly || freebsd || netbsd || openbsd
2022-08-31 22:26:43 +02:00
// +build darwin linux dragonfly freebsd netbsd openbsd
2022-06-20 16:56:45 +02:00
package cmd
import "syscall"
func processExists(pid int) bool {
err := syscall.Kill(pid, syscall.Signal(0))
return err == nil
}