aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-06-14 16:38:29 -0500
committerMark Hatle <mark.hatle@windriver.com>2010-07-22 17:46:28 -0500
commite2b46a6b44e3d5e634298aedcaa2fb1fea6d9142 (patch)
tree0233f526536c9739e8ae7d5dcc26ac1da0cf7f1f
parentd976cdd26e278edb91bbaabfb0b3fb6a9110b80d (diff)
downloadprelink-cross-e2b46a6b44e3d5e634298aedcaa2fb1fea6d9142.tar.gz
prelink-cross-e2b46a6b44e3d5e634298aedcaa2fb1fea6d9142.tar.bz2
prelink-cross-e2b46a6b44e3d5e634298aedcaa2fb1fea6d9142.zip
Add an error message if execve fails
2006-10-13 Daniel Jacobowitz <dan@codesourcery.com> * src/execle_open.c (execve_open): Add an error message if execve fails. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r--trunk/ChangeLog.cross5
-rw-r--r--trunk/src/execle_open.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/trunk/ChangeLog.cross b/trunk/ChangeLog.cross
index 4ad0463..52206ff 100644
--- a/trunk/ChangeLog.cross
+++ b/trunk/ChangeLog.cross
@@ -2,6 +2,11 @@
* Integrate prelinker/cross-prelinking patches
+ 2006-10-13 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * src/execle_open.c (execve_open): Add an error message if execve
+ fails.
+
2006-10-03 Richard Sandiford <richard@codesourcery.com>
* configure.in (AC_CANONICAL_HOST): Remove in favour of...
diff --git a/trunk/src/execle_open.c b/trunk/src/execle_open.c
index 52872aa..72c8a6d 100644
--- a/trunk/src/execle_open.c
+++ b/trunk/src/execle_open.c
@@ -64,6 +64,7 @@ execve_open (const char *path, char *const argv[], char *const envp[])
}
dup2 (1, 2);
execve (path, argv, envp);
+ error (0, errno, "Could not run %s", path);
_exit (127);
}