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] Remove some dead code from the consoled client.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove some dead code from the consoled client.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 04 Apr 2006 15:24:08 +0000
Delivery-date: Tue, 04 Apr 2006 08:54:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 163c65c47d86833f76b6b065858db3284e00a6ad
# Parent  108a62015bf4c3e783f8602646b3a51880f1f2a6
Remove some dead code from the consoled client.

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

diff -r 108a62015bf4 -r 163c65c47d86 tools/console/client/main.c
--- a/tools/console/client/main.c       Mon Apr  3 16:47:42 2006
+++ b/tools/console/client/main.c       Mon Apr  3 16:48:39 2006
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove some dead code from the consoled client., Xen patchbot -unstable <=