☰
Debian Codegraph
@
2.27.0-1
2.24.0-1
/
/
cmd
/
publish_unix.go
☽
☼
cmd/publish_unix.go
code
plain
raw
Apache-2.0
or
GPL-2
2022 Philipp C. Heckel.
debian/copyright
1
//go:build darwin || linux || dragonfly || freebsd || netbsd || openbsd
2
3
package cmd
4
5
import "syscall"
6
7
func processExists(pid int) bool {
8
err := syscall.Kill(pid, syscall.Signal(0))
9
return err == nil
10
}