debuggers.hg
changeset 6674:8f21344e7817
Avoid warn_unused error on read() return value.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Tue Sep 06 16:10:22 2005 +0000 (2005-09-06) |
parents | 158d23cbd2e6 |
children | d4d69c509371 |
files | tools/xenstore/xs.c |
line diff
1.1 --- a/tools/xenstore/xs.c Tue Sep 06 15:47:23 2005 +0000 1.2 +++ b/tools/xenstore/xs.c Tue Sep 06 16:10:22 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 }