[libvirt] [PATCH 1/2] virPerfReadEvent: Prefer saferead over read
Ján Tomko
jtomko at redhat.com
Thu Mar 31 15:01:08 UTC 2016
On Thu, Mar 31, 2016 at 04:48:23PM +0200, Michal Privoznik wrote:
> Do I really need to explain why?
Do you really need to ask?
> Well, if read() is interrupted int the middle of reading, we will
> never read the rest (even though it's highly unlikely as we are
> reading just 8 bytes).
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> src/util/virperf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
ACK
Jan
More information about the libvir-list
mailing list