1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-22 17:52:30 +01:00
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 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
}