HomeClusterLabs Projects

Refactor: libcrmcommon: add procfs handling functions

Description

Refactor: libcrmcommon: add procfs handling functions

This adds a new file, procfs.c, with functions for handling procfs file systems
(/proc), and a corresponding (non-public) procfs.h included by crm_internal.h.
It includes two functions currently (based on existing procfs handling),
for reading process name and ID information from procfs.

This will help reduce duplicated code and provides a place to centralize some
OS-specific handling.

Details

Provenance
kgaillotAuthored on Sep 18 2015, 11:07 AM
Parents
rP86443698857a: Fix: crmd,libcrmcommon,libservices,tools: potential memory leaks
Branches
Unknown
Tags
Unknown

Event Timeline