You've already forked pocketbase
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:
@@ -772,7 +772,7 @@ func (app *BaseApp) Restart() error {
|
||||
}
|
||||
}()
|
||||
|
||||
return exec(execPath, os.Args, os.Environ())
|
||||
return execve(execPath, os.Args, os.Environ())
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user