xen-vtx-unstable

diff tools/xenstore/xs.c @ 6639:d4d69c509371

merge?
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 06 17:00:25 2005 +0000 (2005-09-06)
parents 2a1b32bb4df4 8f21344e7817
children 80afc502461b 4d899a738d59 e7c7196fa329
line diff
     1.1 --- a/tools/xenstore/xs.c	Tue Sep 06 16:59:14 2005 +0000
     1.2 +++ b/tools/xenstore/xs.c	Tue Sep 06 17:00:25 2005 +0000
     1.3 @@ -628,7 +628,8 @@ bool xs_shutdown(struct xs_handle *h)
     1.4  	if (ret) {
     1.5  		char c;
     1.6  		/* Wait for it to actually shutdown. */
     1.7 -		read(h->fd, &c, 1);
     1.8 +		while ((read(h->fd, &c, 1) < 0) && (errno == EINTR))
     1.9 +			continue;
    1.10  	}
    1.11  	return ret;
    1.12  }