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-3.0.5-testing] Handle EOF on xenstored socket.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.0.5-testing] Handle EOF on xenstored socket.
From: "Xen patchbot-3.0.5-testing" <patchbot-3.0.5-testing@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Apr 2007 10:50:55 -0700
Delivery-date: Sat, 28 Apr 2007 11:23:26 -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 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.0.5-testing] Handle EOF on xenstored socket., Xen patchbot-3.0.5-testing <=