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] [PVFB][TOOLS] Terminate backend when fron

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [PVFB][TOOLS] Terminate backend when frontend vanishes early
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 07 Mar 2007 11:30:16 -0800
Delivery-date: Wed, 07 Mar 2007 11:29:55 -0800
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 kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1172849562 0
# Node ID 0d5d7d47202498c5fef59b9231801aabd6400a0b
# Parent  145d3c81e65448554984dc33b086959753336b8d
[PVFB][TOOLS] Terminate backend when frontend vanishes early

Ensure the backend terminates when the frontend vanishes before the
connection is established.  This happens when the guest doesn't have
the devices.

Signed-off-by: Markus Armbruster <armbru@xxxxxxxxxx>
---
 tools/xenfb/xenfb.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff -r 145d3c81e654 -r 0d5d7d472024 tools/xenfb/xenfb.c
--- a/tools/xenfb/xenfb.c       Fri Mar 02 15:12:54 2007 +0000
+++ b/tools/xenfb/xenfb.c       Fri Mar 02 15:32:42 2007 +0000
@@ -245,11 +245,10 @@ static int xenfb_wait_for_state(struct x
        unsigned state, dummy;
        char **vec;
 
+       awaited |= 1 << XenbusStateUnknown;
+
        for (;;) {
                state = xenfb_read_state(xsh, dir);
-               if (state < 0)
-                       return -1;
-
                if ((1 << state) & awaited)
                        return state;
 

_______________________________________________
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] [PVFB][TOOLS] Terminate backend when frontend vanishes early, Xen patchbot-unstable <=