cmd: unify unix-specific code
This commit is contained in:
10
cmd/publish_unix.go
Normal file
10
cmd/publish_unix.go
Normal file
@@ -0,0 +1,10 @@
|
||||
// +build darwin linux dragonfly freebsd netbsd openbsd
|
||||
|
||||
package cmd
|
||||
|
||||
import "syscall"
|
||||
|
||||
func processExists(pid int) bool {
|
||||
err := syscall.Kill(pid, syscall.Signal(0))
|
||||
return err == nil
|
||||
}
|
||||
Reference in New Issue
Block a user