ia64/xen-unstable

changeset 14978:18844eff507a

Handle EOF on xenstored socket.
Suggested by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>.

Signed-off-by: Steven Hand <steven@xensource.com>
author Steven Hand <steven@xensource.com>
date Fri Apr 27 16:17:44 2007 +0100 (2007-04-27)
parents 4789f3b2e1b9
children 493f7c689f03
files tools/xenstore/xenstored_core.c
line diff
     1.1 --- a/tools/xenstore/xenstored_core.c	Fri Apr 27 15:22:34 2007 +0100
     1.2 +++ b/tools/xenstore/xenstored_core.c	Fri Apr 27 16:17:44 2007 +0100
     1.3 @@ -1336,7 +1336,7 @@ static void handle_input(struct connecti
     1.4  
     1.5  	bytes = conn->read(conn, in->buffer + in->used,
     1.6  			   in->hdr.msg.len - in->used);
     1.7 -	if (bytes < 0)
     1.8 +	if (bytes <= 0)
     1.9  		goto bad_client;
    1.10  
    1.11  	in->used += bytes;