renamed to execve to make it more clear
This commit is contained in:
parent
3ca6321907
commit
819ec1ad5c
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue