mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Share code between spawn() and exec() implementations.
Okay, now there's only one ELF loading client in the process launch code.
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
|
||||
extern "C" {
|
||||
|
||||
int spawn(const char* path, const char** args)
|
||||
int spawn(const char* path, const char** args, const char** envp)
|
||||
{
|
||||
int rc = Syscall::invoke(Syscall::Spawn, (dword)path, (dword)args);
|
||||
int rc = Syscall::invoke(Syscall::Spawn, (dword)path, (dword)args, (dword)envp);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user