first commit
This commit is contained in:
11
cli/internal/app/reexec_unix.go
Normal file
11
cli/internal/app/reexec_unix.go
Normal file
@@ -0,0 +1,11 @@
|
||||
//go:build !windows
|
||||
|
||||
package app
|
||||
|
||||
import "syscall"
|
||||
|
||||
// reexecSelf replaces the current process with the updated binary.
|
||||
// On Unix, this uses execve(2) via syscall.Exec.
|
||||
func reexecSelf(execPath string, args []string, env []string) error {
|
||||
return syscall.Exec(execPath, args, env)
|
||||
}
|
||||
Reference in New Issue
Block a user