Files
volumen/internal/updater/exec.go
T

20 lines
495 B
Go
Raw Normal View History

2026-09-18 12:03:35 +02:00
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
package updater
import (
"os"
"runtime"
"syscall"
)
// defaultSyscallExec replaces the current process image; it never
// returns on success.
func defaultSyscallExec(path string, argv []string) error {
return syscall.Exec(path, argv, os.Environ())
}
func goos() string { return runtime.GOOS }
func goarch() string { return runtime.GOARCH }