From 819ec1ad5ca5d94a83b917e60a3c7d8f78b8f18b Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Fri, 22 Aug 2025 20:47:58 +0300 Subject: [PATCH] renamed to execve to make it more clear --- core/base.go | 2 +- core/syscall.go | 3 ++- core/syscall_wasm.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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 }