Files
bifrost/cli/internal/app/reexec_unix.go
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

12 lines
284 B
Go

//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)
}