HomeClusterLabs Projects

Refactor: pacemakerd: Remove more nesting in child_liveness()

Description

Refactor: pacemakerd: Remove more nesting in child_liveness()

Now, rc != pcmk_rc_ipc_unresponsive is equivalent to rc == pcmk_rc_ok at
the end of the changed section. Also, ipc_pid != 0 is basically
equivalent to rc == pcmk_rc_ok: pcmk__ipc_is_authentic_process_active()
returns pcmk_rc_ok only if it found a PID.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Tue, Sep 16, 9:22 PM
Parents
rP22127cb3f875: Refactor: pacemakerd: Drop pid_active variable
Branches
Unknown
Tags
Unknown