|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] libxl: actually print an error when execv
# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1296845160 0
# Node ID f4d29a2c45ca96c10d86b5fbf537ffcfc62812da
# Parent ed9ef3b07d2a9317d4bdef1a8f1fefb1bd63870c
libxl: actually print an error when execve (in libxl__exec) fails
The header comment says libxl__exec logs errors. So it should do so.
Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/libxl/libxl_exec.c | 2 ++
1 files changed, 2 insertions(+)
diff -r ed9ef3b07d2a -r f4d29a2c45ca tools/libxl/libxl_exec.c
--- a/tools/libxl/libxl_exec.c Fri Feb 04 18:45:26 2011 +0000
+++ b/tools/libxl/libxl_exec.c Fri Feb 04 18:46:00 2011 +0000
@@ -55,6 +55,8 @@ void libxl__exec(int stdinfd, int stdout
* to assume they got DFL. */
execvp(arg0, args);
+
+ fprintf(stderr, "libxl: cannot execute %s: %s\n", arg0, strerror(errno));
_exit(-1);
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] libxl: actually print an error when execve (in libxl__exec) fails,
Xen patchbot-unstable <=
|
|
|
|
|