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] XendDomain.py:

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] XendDomain.py:
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 24 May 2005 10:12:12 +0000
Delivery-date: Tue, 24 May 2005 18:01:36 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1528, 2005/05/24 11:12:12+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        XendDomain.py:
          Handle error case where exec fails.
        xpopen.py:
          Exit with 127 if exec fails.
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>



 util/xpopen.py     |    2 +-
 xend/XendDomain.py |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)


diff -Nru a/tools/python/xen/util/xpopen.py b/tools/python/xen/util/xpopen.py
--- a/tools/python/xen/util/xpopen.py   2005-05-24 14:02:08 -04:00
+++ b/tools/python/xen/util/xpopen.py   2005-05-24 14:02:08 -04:00
@@ -129,7 +129,7 @@
         try:
             os.execvp(cmd[0], cmd)
         finally:
-            os._exit(1)
+            os._exit(127)
 
     def poll(self):
         """Return the exit status of the child process if it has finished,
diff -Nru a/tools/python/xen/xend/XendDomain.py 
b/tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       2005-05-24 14:02:08 -04:00
+++ b/tools/python/xen/xend/XendDomain.py       2005-05-24 14:02:08 -04:00
@@ -392,6 +392,8 @@
                 if filter(lambda (fd, event): event & select.POLLHUP, r):
                     break
 
+            if child.wait() >> 8 == 127:
+                lasterr = "popen %s failed" % PATH_XC_RESTORE
             if child.wait() != 0:
                 raise XendError("xc_restore failed: %s" % lasterr)
             

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>