From: Pekka Enberg Date: Tue, 12 Jul 2011 18:42:21 +0000 (+0300) Subject: kvm tools: Use writev() in xwritev() X-Git-Tag: next-20110824~3^2~108 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8670504db624697cebfea2797adc63fa53d557df;p=karo-tx-linux.git kvm tools: Use writev() in xwritev() This patch fixes a typo in xwritev(). Luckily the function is not used so the problem is only latent. Spotted during code review. Cc: Sasha Levin Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/read-write.c b/tools/kvm/read-write.c index 7e233b5a5351..737fb26ddfbe 100644 --- a/tools/kvm/read-write.c +++ b/tools/kvm/read-write.c @@ -173,7 +173,7 @@ ssize_t xwritev(int fd, const struct iovec *iov, int iovcnt) ssize_t nr; restart: - nr = write(fd, iov, iovcnt); + nr = writev(fd, iov, iovcnt); if ((nr < 0) && ((errno == EAGAIN) || (errno == EINTR))) goto restart;