Welcome to mirror list, hosted at ThFree Co, Russian Federation.
1 2 3 4 5 6 7 8 9 10
package main import ( "os" "strconv" ) func procPath(pid int) (path string, err error) { return os.Readlink("/proc/" + strconv.Itoa(pid) + "/exe") }