HomeClusterLabs Projects

Refactor: libcrmcommon: Change return value in pcmk__read_pidfile.

Description

Refactor: libcrmcommon: Change return value in pcmk__read_pidfile.

If sscanf returns 0, there was no PID to be read out of the file.
Return ENODATA instead of pcmk_rc_unknown_format in that case.
Additionally, if it returns a negative number, we should then return
errno.

Related T629

Details

Provenance
clumensAuthored on Mar 24 2023, 10:44 AM
Parents
rP487e507e82cd: Refactor: libcrmcommon: Change return value in pcmk__xe_get_bool_attr.
Branches
Unknown
Tags
Unknown