github.1485827954.workers.dev/ethereum/go-ethereum@v1.14.3/internal/reexec/self_linux.go (about) 1 // This file originates from Docker/Moby, 2 // https://github.com/moby/moby/blob/master/pkg/reexec/ 3 // Licensed under Apache License 2.0: https://github.com/moby/moby/blob/master/LICENSE 4 // Copyright 2013-2018 Docker, Inc. 5 6 //go:build linux 7 8 package reexec 9 10 // Self returns the path to the current process's binary. 11 // Returns "/proc/self/exe". 12 func Self() string { 13 return "/proc/self/exe" 14 }