[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [PVFB][TOOLS] Terminate backend when frontend vanishes early



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.