Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
5f70730d579a1c9d48a2d4259f57fb698960baf4
/
.
/
pkg
/
pidfile
/
pidfile_unix.go
blob: 1bf5221e3b64748846794cc4609179c84732156f [
file
] [
log
] [
blame
]
// +build !windows,!darwin
package pidfile
import (
"os"
"path/filepath"
"strconv"
)
func processExists(pid int) bool {
if _, err := os.Stat(filepath.Join("/proc", strconv.Itoa(pid))); err == nil {
return true
}
return false
}