mirror of
https://github.com/fosrl/newt.git
synced 2026-07-16 03:46:25 -05:00
15 lines
295 B
Go
15 lines
295 B
Go
//go:build !windows
|
|
|
|
package updates
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
// reexec replaces the current process image with the binary at exePath,
|
|
// forwarding all original arguments and environment variables.
|
|
func reexec(exePath string) error {
|
|
return syscall.Exec(exePath, os.Args, os.Environ())
|
|
}
|