diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-09-06 16:10:22 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-09-06 16:10:22 +0000 |
commit | 412ce402aee45b9cf898413d82f3e4701b0aa93e (patch) | |
tree | 1dad141823bdc8242d0f2ae40070c28051513fe1 /tools/xenstore/xs.c | |
parent | b70b67679f4a98d2457db5c52c783ebe1d61f6fd (diff) | |
download | xen-412ce402aee45b9cf898413d82f3e4701b0aa93e.tar.gz xen-412ce402aee45b9cf898413d82f3e4701b0aa93e.tar.bz2 xen-412ce402aee45b9cf898413d82f3e4701b0aa93e.zip |
Avoid warn_unused error on read() return value.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstore/xs.c')
-rw-r--r-- | tools/xenstore/xs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/xenstore/xs.c b/tools/xenstore/xs.c index ff31244166..5d36a8d642 100644 --- a/tools/xenstore/xs.c +++ b/tools/xenstore/xs.c @@ -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; } |