1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-14 11:47:33 +00:00
binwiederhier-ntfy/cmd/publish_unix.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
261 B
Go
Raw Normal View History

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