Files
VeillaxandClaude Sonnet 5.5 416b921d71
CI / test (push) Successful in 5m31s
Export selfupdate.Restart
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 13:58:02 -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())
}