WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] libxl: actually print an error when execv

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: actually print an error when execve (in libxl__exec) fails
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Wed, 09 Feb 2011 06:50:21 -0800
Delivery-date: Wed, 09 Feb 2011 06:51:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=