[tip:tools/kvm] kvm tools: Use writev() in xwritev()

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

 



Commit-ID:  8670504db624697cebfea2797adc63fa53d557df
Gitweb:     http://git.kernel.org/tip/8670504db624697cebfea2797adc63fa53d557df
Author:     Pekka Enberg <penberg@xxxxxxxxxx>
AuthorDate: Tue, 12 Jul 2011 21:42:21 +0300
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Tue, 12 Jul 2011 21:42:21 +0300

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 <levinsasha928@xxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/read-write.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/kvm/read-write.c b/tools/kvm/read-write.c
index 7e233b5..737fb26 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;
 
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux