go-ethereum/internal/reexec/self_linux.go
2024-02-29 01:33:57 +03:30

14 lines
390 B
Go

// This file originates from Docker/Moby
// https://github.com/moby/moby/blob/master/pkg/reexec/
// Licensed under Apache License 2.0: https://github.com/moby/moby/blob/master/LICENSE
// Copyright 2013-2018 Docker, Inc.
//go:build linux
package reexec
// Self returns the path to the current process's binary.
// Returns "/proc/self/exe".
func Self() string {
return "/proc/self/exe"
}