runc/system/linux.go

18 lines
234 B
Go

// +build linux
package system
import (
"os/exec"
"syscall"
)
func Execv(cmd string, args []string, env []string) error {
name, err := exec.LookPath(cmd)
if err != nil {
return err
}
return syscall.Exec(name, args, env)
}