[PATCH] virsocket: Don't preserve errno in virSocketRecvFD()

Ján Tomko jtomko at redhat.com
Fri Aug 20 11:45:15 UTC 2021


On a Friday in 2021, Michal Privoznik wrote:
>When setting O_CLOEXEC flag on received FD fails the FD is closed
>using VIR_FORCE_CLOSE(). But the call is wrapped in errno save
>which is not necessary because VIR_FORCE_CLOSE() preservers errno

*preserves

>value.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/util/virsocket.c | 2 --
> 1 file changed, 2 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210820/68b4dcdf/attachment-0001.sig>


More information about the libvir-list mailing list