Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command returns *exec.Cmd which has Path as current binary. Also it setting SysProcAttr.Pdeathsig to SIGTERM. This will use the in-memory version (/proc/self/exe) of the current binary, it is thus safe to delete or replace the on-disk binary (os.Args[0]).
func CommandContext ¶ added in v1.12.0
CommandContext returns *exec.Cmd which has Path as current binary, and also sets SysProcAttr.Pdeathsig to SIGTERM. This will use the in-memory version (/proc/self/exe) of the current binary, it is thus safe to delete or replace the on-disk binary (os.Args[0]).
func Init ¶
func Init() bool
Init is called as the first part of the exec process and returns true if an initialization function was called.
Types ¶
This section is empty.