HomeFreeBSD

readelf: Close input files when done with them.

Description

readelf: Close input files when done with them.

The low fd limit used by poudriere exposed an odd failure mode in
cap_fileargs (used by readelf as of r350516). In particular, when
the limit was hit, both the main process and casper service would
block on their shared socket, waiting forever for the other to send a
message.

Reported by: zeising
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on
Parents
rS350670: Expose zlib's utility functions in Z_SOLO library when building kernel.
Branches
Unknown
Tags
Unknown