HomeClusterLabs Projects

Fix: libcrmservice: try not to spam close() file descriptors

Description

Fix: libcrmservice: try not to spam close() file descriptors

With large file descriptor limits, action_launch_child can close
millions of non-existent file descriptors.

Instead, try to read open file descriptors from /proc or /dev/fd and
close only those which are open.

See rhbz#1762025

Details

Provenance
John Eckersberg <jeckersb@redhat.com>Authored on Oct 11 2019, 8:59 AM
Parents
rP81d51216d218: Merge pull request #1884 from clumens/crm_mon-messages
Branches
Unknown
Tags
Unknown

Event Timeline