aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-06-15 14:09:16 -0500
committerMark Hatle <mark.hatle@windriver.com>2010-07-22 18:45:51 -0500
commit5f99ca55d01a7d7c1c916df343e8e2631061cafd (patch)
tree52360a2e96f6ec28b2f2c7a4049c49a51443b8f0
parent998008fdec4d86e1f9f14f5555892657c3d9356e (diff)
downloadprelink-cross-5f99ca55d01a7d7c1c916df343e8e2631061cafd.tar.gz
prelink-cross-5f99ca55d01a7d7c1c916df343e8e2631061cafd.tar.bz2
prelink-cross-5f99ca55d01a7d7c1c916df343e8e2631061cafd.zip
Add missing pid initialisation
2009-04-23 Maciej W. Rozycki <macro@codesourcery.com> Issue #5165 * src/execle_open.c (execve_open): Add missing pid initialisation.
-rw-r--r--trunk/ChangeLog.cross6
-rw-r--r--trunk/src/execle_open.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/trunk/ChangeLog.cross b/trunk/ChangeLog.cross
index 520e18e..880f7b9 100644
--- a/trunk/ChangeLog.cross
+++ b/trunk/ChangeLog.cross
@@ -1,3 +1,9 @@
+2009-04-23 Maciej W. Rozycki <macro@codesourcery.com>
+
+ Issue #5165
+ * src/execle_open.c (execve_open): Add missing pid
+ initialisation.
+
2010-06-15 Mark Hatle <mark.hatle@windriver.com>
* Merge to upstream r174
* src/arch-mips.c, src/conflict.c, src/cxx.c, src/main.c, src/verify.c:
diff --git a/trunk/src/execle_open.c b/trunk/src/execle_open.c
index 72c8a6d..2ee5cbc 100644
--- a/trunk/src/execle_open.c
+++ b/trunk/src/execle_open.c
@@ -50,7 +50,7 @@ execve_open (const char *path, char *const argv[], char *const envp[])
return NULL;
}
- switch (vfork ())
+ switch (pid = vfork ())
{
case -1:
error (0, errno, "Could not run %s", path);