qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 39/52] migration/rdma: Convert qemu_rdma_write_one() to Error


From: Jason Gunthorpe
Subject: Re: [PATCH 39/52] migration/rdma: Convert qemu_rdma_write_one() to Error
Date: Mon, 16 Oct 2023 09:11:23 -0300

On Sat, Oct 07, 2023 at 03:40:50AM +0000, Zhijian Li (Fujitsu) wrote:
> +rdma-core
> 
> 
> Is global variable *errno* reliable when the documentation only states
> "returns 0 on success, or the value of errno on failure (which indicates the 
> failure reason)."

I think the intention of this language was that an errno constant is
returned, the caller should not assume it is stored in errno.

errno is difficult, many things overwrite it, you can loose its value
during error handling.

Jason



reply via email to

[Prev in Thread] Current Thread [Next in Thread]