]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
readelf: Close input files when done with them.
authormarkj <markj@FreeBSD.org>
Wed, 7 Aug 2019 03:14:45 +0000 (03:14 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 7 Aug 2019 03:14:45 +0000 (03:14 +0000)
commit37b420014fdd0f6e1ea5aecd05f04ed0a33fa5b7
tree210210c464acb8f06b981f59332f7a99598ecd60
parent03ea53cab0c75d15cba7c9e2e7a749aa67f7649d
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
contrib/elftoolchain/readelf/readelf.c