Avoid warn_unused error on read() return value.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-09-06 16:10:22 +00:00
1 parent b70b67679f
commit 412ce402ae
1 file changed
+2 -1
+2 -1
View File
@@ -628,7 +628,8 @@ bool xs_shutdown(struct xs_handle *h)
if (ret) {
char c;
/* Wait for it to actually shutdown. */
read(h->fd, &c, 1);
while ((read(h->fd, &c, 1) < 0) && (errno == EINTR))
continue;
}
return ret;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.