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-devel

[Xen-devel] [PATCH] Remove some dead code from xenconsole

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Remove some dead code from xenconsole
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Mon, 03 Apr 2006 11:11:20 -0500
Delivery-date: Mon, 03 Apr 2006 09:12:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mail/News 1.5 (X11/20060309)
Remove some bit rot from the changes to the console driver over the 3.0 series. Only compile tested.

Regards,

Anthony Liguori
# HG changeset patch
# User Anthony Liguori <anthony@xxxxxxxxxxxxx>
# Node ID e3e364456cac763c144468591df0528536b8cff4
# Parent  4ad317429111d43cc99810af25b3faf6ffed4209
Remove some dead code from the consoled client.

Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>

diff -r 4ad317429111 -r e3e364456cac tools/console/client/main.c
--- a/tools/console/client/main.c       Sun Apr  2 16:16:53 2006 +0100
+++ b/tools/console/client/main.c       Mon Apr  3 11:06:59 2006 -0500
@@ -36,7 +36,6 @@
 #include <errno.h>
 #include <pty.h>
 
-#include "xenctrl.h"
 #include "xs.h"
 
 #define ESCAPE_CHARACTER 0x1d
@@ -92,7 +91,7 @@
        tcsetattr(fd, TCSAFLUSH, old);
 }
 
-static int console_loop(int xc_handle, domid_t domid, int fd)
+static int console_loop(int fd)
 {
        int ret;
 
@@ -161,7 +160,6 @@
 {
        struct termios attr;
        int domid;
-       int xc_handle;
        char *sopt = "h";
        int ch;
        int opt_ind=0;
@@ -206,11 +204,6 @@
                err(errno, "Could not contact XenStore");
        }
 
-       xc_handle = xc_interface_open();
-       if (xc_handle == -1) {
-               err(errno, "xc_interface_open()");
-       }
-       
        signal(SIGTERM, sighandler);
 
        path = xs_get_domain_path(xs, domid);
@@ -260,7 +253,7 @@
        free(path);
 
        init_term(STDIN_FILENO, &attr);
-       console_loop(xc_handle, domid, spty);
+       console_loop(spty);
        restore_term(STDIN_FILENO, &attr);
 
        return 0;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Remove some dead code from xenconsole, Anthony Liguori <=