From 8670504db624697cebfea2797adc63fa53d557df Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 12 Jul 2011 21:42:21 +0300 Subject: [PATCH] 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 --- tools/kvm/read-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5