Files
Reef/selfupdate/restart_unix.go
T
2026-10-26 13:57:23 -06:00

14 lines
249 B
Go

//go:build !windows
package selfupdate
import (
"os"
"syscall"
)
// restart replaces this process with the new binary, with the same arguments and environment.
func restart(exe string) error {
return syscall.Exec(exe, os.Args, os.Environ())
}