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-4.1-testing] tools/tests/xen-access: minor bug fixe

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] tools/tests/xen-access: minor bug fixes
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Tue, 10 May 2011 19:30:11 +0100
Delivery-date: Tue, 10 May 2011 11:30:28 -0700
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 Aravindh Puthiyaparambil <aravindh@xxxxxxxxxxxx>
# Date 1304939930 -3600
# Node ID bdc6dd89d83c2fcd87b069557b6f8867ab95dda1
# Parent  60070af3777d3b030668e8f91e1d6b5e97b59bba
tools/tests/xen-access: minor bug fixes

Fix a couple of minor bugs in xen-access test program:
 * Fix -m option handling.
 * Fix a segfault that was occurring during program exit.

Signed-off-by: Aravindh Puthiyaparambil <aravindh@xxxxxxxxxxxx>
xen-unstable changeset:   23307:1649275965f0
xen-unstable date:        Mon May 09 09:56:39 2011 +0100
---


diff -r 60070af3777d -r bdc6dd89d83c tools/tests/xen-access/xen-access.c
--- a/tools/tests/xen-access/xen-access.c       Mon May 09 12:18:14 2011 +0100
+++ b/tools/tests/xen-access/xen-access.c       Mon May 09 12:18:50 2011 +0100
@@ -482,9 +482,6 @@
 
     if ( argc == 3 && argv[0][0] == '-' )
     {
-        argv++;
-        argc--;
-
         if ( !strcmp(argv[0], "-m") )
             required = 1;
         else
@@ -492,6 +489,8 @@
             usage(progname);
             return -1;
         }
+        argv++;
+        argc--;
     }
 
     if ( argc != 2 )
@@ -651,8 +650,6 @@
     if ( rc == 0 )
         rc = rc1;
 
-    xc_interface_close(xch);
-
     DPRINTF("xenaccess exit code %d\n", rc);
     return rc;
 }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.1-testing] tools/tests/xen-access: minor bug fixes, Xen patchbot-4 . 1-testing <=