github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/pkg/pidfile/pidfile_unix.go (about) 1 // +build !windows 2 3 package pidfile 4 5 import ( 6 "os" 7 "path/filepath" 8 "strconv" 9 ) 10 11 func processExists(pid int) bool { 12 if _, err := os.Stat(filepath.Join("/proc", strconv.Itoa(pid))); err == nil { 13 return true 14 } 15 return false 16 }