Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
refs/tags/v1.12.1-rc1
/
.
/
pkg
/
pidfile
/
pidfile_unix.go
blob: 28f3deca9191f6fb07a701e50c7f307255438ecf [
file
] [
log
] [
blame
]
// +build !windows
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
}