execv(3) now passes environ(7) to execve(2).

This commit is contained in:
Jonas 'Sortie' Termansen 2012-04-04 01:38:45 +02:00
parent 33645eb347
commit 60b9a84a51
1 changed files with 3 additions and 1 deletions

View File

@ -22,11 +22,13 @@
*******************************************************************************/
#define _WANT_ENVIRON
#include <libmaxsi/platform.h>
#include <libmaxsi/syscall.h>
#include <libmaxsi/process.h>
#include <stdio.h>
#include <dirent.h>
#include <unistd.h>
namespace Maxsi
{
@ -61,7 +63,7 @@ namespace Maxsi
extern "C" int execv(const char* pathname, char* const* argv)
{
return execve(pathname, argv, NULL);
return execve(pathname, argv, environ);
}
DUAL_FUNCTION(void, exit, Exit, (int status))