HomeClusterLabs Projects

Low: libstonithd: handle API creation errors better

Description

Low: libstonithd: handle API creation errors better

Our general policy toward memory allocation errors so far has been to not
bother checking, and let the first use cause a segmentation fault, with the
idea that a node that's critically low on memory should get fenced as soon as
possible, not to mention the code clutter.

On the other hand, checking for allocation failure is cleaner, and can help
rule out memory issues when debugging strange problems. This commit takes
that route for stonith API creation.

Details

Provenance
kgaillotAuthored on May 31 2019, 8:17 PM
Parents
rP0bb7c1c9247f: Merge pull request #1843 from jnpkrn/build
Branches
Unknown
Tags
Unknown

Event Timeline