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

2021-08-20 Thread Ján Tomko
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 -

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

2021-08-20 Thread Michal Privoznik
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 value. Signed-off-by: Michal Privoznik --- src/util/virsocket.c | 2 -- 1 file changed, 2 deletions(-