diff --git a/core/base.go b/core/base.go index 0d4f58c4..0f9252d9 100644 --- a/core/base.go +++ b/core/base.go @@ -772,7 +772,7 @@ func (app *BaseApp) Restart() error { } }() - return exec(execPath, os.Args, os.Environ()) + return execve(execPath, os.Args, os.Environ()) }) } diff --git a/core/syscall.go b/core/syscall.go index 3b7cbfdf..c4bb38d9 100644 --- a/core/syscall.go +++ b/core/syscall.go @@ -4,6 +4,7 @@ package core import "syscall" -func exec(argv0 string, argv []string, envv []string) error { +// execve invokes the execve(2) system call. +func execve(argv0 string, argv []string, envv []string) error { return syscall.Exec(argv0, argv, envv) } diff --git a/core/syscall_wasm.go b/core/syscall_wasm.go index a971fb6a..cf4d9a4c 100644 --- a/core/syscall_wasm.go +++ b/core/syscall_wasm.go @@ -4,6 +4,6 @@ package core import "errors" -func exec(argv0 string, argv []string, envv []string) error { +func execve(argv0 string, argv []string, envv []string) error { return errors.ErrUnsupported }