[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Avoid warn_unused error on read() return value.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 8f21344e78171fde10c9f93f824e81b46868bf94
# Parent  158d23cbd2e605eb5acd969ccfde76da58161d99
Avoid warn_unused error on read() return value.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 158d23cbd2e6 -r 8f21344e7817 tools/xenstore/xs.c
--- a/tools/xenstore/xs.c       Tue Sep  6 15:47:23 2005
+++ b/tools/xenstore/xs.c       Tue Sep  6 16:10:22 2005
@@ -628,7 +628,8 @@
        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;
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.