HomeFreeBSD

llvm: Support: don't block signals around close if it can be avoided

Description

llvm: Support: don't block signals around close if it can be avoided

Signal blocking originally showed up in 51c2afc4b65b2782 ("Support:
Don't call close again if we get EINTR"), but it was overzealous --
there are systems where the error is known to be fine.

This commit elides signal blocking for said systems (the list is
incomplete though).

Note close() can still fail for other reasons (like ENOSPC), in which
case an error will be returned while the fd slot is cleared up.

Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D42984

(cherry picked from commit 3358108a38f0efc7e7a143aeda80c941946fef77)

Details

Provenance
mjgAuthored on Dec 29 2023, 6:51 PM
dimCommitted on Jan 7 2024, 5:46 PM
Reviewer
dim
Differential Revision
D42984: llvm: Support: don't block signals around close if it can be avoided
Parents
rGa861b58439f1: Add missing /usr/include/c++/v1/__mdspan/mdspan.h header
Branches
Unknown
Tags
Unknown