]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsocket: Don't preserve errno in virSocketRecvFD()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Aug 2021 08:41:41 +0000 (10:41 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Aug 2021 13:00:53 +0000 (15:00 +0200)
commit9f33a6dcb47ef513275dcaa7b749d8ffd596470e
tree1e0292a6c1e7c36925a20bcd03d2d98645920dc4
parent247e8fcc6a543b807581ce0acfdc74ea0fd7c8eb
virsocket: Don't preserve errno in virSocketRecvFD()

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() preserves  errno
value.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virsocket.c