mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Avoid warn_unused error on read() return value.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
b70b67679f
commit
412ce402ae
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||