HomeClusterLabs Projects

Low: libcrmservice: don't close descriptors above current limit

Description

Low: libcrmservice: don't close descriptors above current limit

This is irrelevant in normal use. However, valgrind can open high-numbered
file descriptors for its own use above the soft limit of the process being run
under valgrind. If that process forks a child that tries to close all open file
descriptors (e.g. the executor running an agent), the close fails because the
file descriptors are invalid, and (ironically) valgrind warns about that.

This allows 5a73027 to work under valgrind. Additionally, we extend the
efficient close method from that commit to pacemakerd's spawning of children.

Details

Provenance
kgaillotAuthored on Oct 21 2019, 8:02 PM
Parents
rP732a5d10ef18: Merge pull request #1918 from clumens/crm_mon-fixes-2.0
Branches
Unknown
Tags
Unknown

Event Timeline