1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-31 10:39:23 +02:00
This commit is contained in:
Philipp Heckel 2022-06-21 11:43:26 -04:00
parent a160da3ad9
commit 26fda847ca
5 changed files with 75 additions and 1 deletions

8
cmd/publish_linux.go Normal file
View file

@ -0,0 +1,8 @@
package cmd
import "syscall"
func processExists(pid int) bool {
err := syscall.Kill(pid, syscall.Signal(0))
return err == nil
}