Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
refs/tags/v17.06.1-ce-rc4
/
.
/
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
}