1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-22 17:52:30 +01:00

cmd: unify unix-specific code

This commit is contained in:
la-ninpre 2022-08-31 23:26:43 +03:00
parent 6935d83ab3
commit e60e770419
No known key found for this signature in database
GPG key ID: 405C2C163EF6A2C9
3 changed files with 4 additions and 8 deletions

View file

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

View file

@ -1,3 +1,5 @@
// +build darwin linux dragonfly freebsd netbsd openbsd
package cmd
import "syscall"

View file

@ -1,3 +1,5 @@
// +build linux dragonfly freebsd netbsd openbsd
package cmd
const (