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

[Xen-changelog] [xen-unstable] Handle EOF on xenstored socket.



# HG changeset patch
# User Steven Hand <steven@xxxxxxxxxxxxx>
# Date 1177687064 -3600
# Node ID 18844eff507ae7e5757320297ce1915391f51881
# Parent  4789f3b2e1b9f4b3baa2bca1fd1f9bcfdca28c05
Handle EOF on xenstored socket.
Suggested by Pavel Kankovsky <peak@xxxxxxxxxxxxxxxxxxxxxx>.

Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx>
---
 tools/xenstore/xenstored_core.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 4789f3b2e1b9 -r 18844eff507a tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c   Fri Apr 27 15:22:34 2007 +0100
+++ b/tools/xenstore/xenstored_core.c   Fri Apr 27 16:17:44 2007 +0100
@@ -1336,7 +1336,7 @@ static void handle_input(struct connecti
 
        bytes = conn->read(conn, in->buffer + in->used,
                           in->hdr.msg.len - in->used);
-       if (bytes < 0)
+       if (bytes <= 0)
                goto bad_client;
 
        in->used += bytes;

_______________________________________________
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®.