HomeClusterLabs Projects

High: libcrmcommon: Don't assert on failure to write errors.

Description

High: libcrmcommon: Don't assert on failure to write errors.

Only text output mode is affected by this - other output formats write
to a buffer, so an error there is likely a memory problem and should be
asserted on. vprintf/fprintf can return a negative value if the file
handle is closed (say, with shell output redirection) and we don't want
to assert on that.

Fixes T891

Details

Provenance
clumensAuthored on Oct 3 2024, 9:56 AM
Parents
rP06e44c07576d: Merge pull request #3676 from nrwahl2/nrwahl2-drops
Branches
Unknown
Tags
Unknown
Tasks
T891: Don't assert on vfprintf() error at tool exit