|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH][PVFB][TOOLS] Terminate backend when frontend vanishe
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>
---
Note:
* Callers of xenfb_wait_for_state() already do the right thing when it
returns XenbusStateUnknown.
* xenfb_read_state() can't return negative values. The useless test
is a leftover from an older version.
diff -r 2d3ceb082114 tools/xenfb/xenfb.c
--- a/tools/xenfb/xenfb.c Mon Feb 26 09:13:50 2007 +0000
+++ b/tools/xenfb/xenfb.c Thu Mar 01 20:57:38 2007 +0100
@@ -245,11 +246,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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH][PVFB][TOOLS] Terminate backend when frontend vanishes early,
Markus Armbruster <=
|
|
|
|
|