|
From: <sv...@va...> - 2005-09-23 19:28:54
|
Author: sewardj
Date: 2005-09-23 20:28:47 +0100 (Fri, 23 Sep 2005)
New Revision: 4739
Log:
Pass envp to the child process, since not doing so tends to kill it if
it depends on LD_LIBRARY_PATH being set.
Modified:
branches/ASPACEM/memcheck/tests/execve2.c
Modified: branches/ASPACEM/memcheck/tests/execve2.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/memcheck/tests/execve2.c 2005-09-23 16:38:12 UTC (re=
v 4738)
+++ branches/ASPACEM/memcheck/tests/execve2.c 2005-09-23 19:28:47 UTC (re=
v 4739)
@@ -1,9 +1,9 @@
#include <assert.h>
#include <unistd.h>
=20
-int main(void)
+int main ( int argc, char** argv, char** envp )
{
execve(NULL, NULL, NULL);
- execve("../../tests/true", NULL, NULL);
+ execve("../../tests/true", NULL, envp);
assert(0); // shouldn't get here
}
|