HomeClusterLabs Projects

Refactor: libcrmcommon: Remove guards in panic_local_nonroot.

Description

Refactor: libcrmcommon: Remove guards in panic_local_nonroot.

pcmk__procfs_pid_of will always be compiled, even if procfs is not
supported. In that case, it will just return 0. panic_local_nonroot is
already set up to properly handle a ppid of 0, so there's no need to add
guards for procfs.

Ref T385

Details

Provenance
clumensAuthored on Nov 15 2024, 1:26 PM
Parents
rP708b0fe35bfa: Refactor: libcrmcommon: Move opening /proc/self/fd into a function.
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task