1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-24 23:24:00 +02:00

renamed to execve to make it more clear

This commit is contained in:
Gani Georgiev
2025-08-22 20:47:58 +03:00
parent 3ca6321907
commit 819ec1ad5c
3 changed files with 4 additions and 3 deletions

View File

@@ -772,7 +772,7 @@ func (app *BaseApp) Restart() error {
}
}()
return exec(execPath, os.Args, os.Environ())
return execve(execPath, os.Args, os.Environ())
})
}

View File

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

View File

@@ -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
}