make more pkgs support darwin
Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: bd11a269bc114334cf6160ba38e396f8f0e3aecd Component: engine
This commit is contained in:
@ -13,7 +13,7 @@ func Self() string {
|
||||
return "/proc/self/exe"
|
||||
}
|
||||
|
||||
// Command returns *exec.Cmd which have Path as current binary. Also it setting
|
||||
// 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]).
|
||||
|
||||
Reference in New Issue
Block a user