Welcome to mirror list, hosted at ThFree Co, Russian Federation.

proc_path_linux.go « gitaly-wrapper « cmd - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d48828a93ef454d07a7c11a71f30ca0399b740f3 (plain)
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")
}