1 / 3+
A child durably reports failure, host cleanup begins, and then SIGTERM arrives. Which result should the wrapper report?
Precedence should follow event order and ownership, not the order in which cleanup happens to inspect variables. If the child result was complete and durable before cleanup began, a later cleanup-time signal matters after success but should not replace that earlier authoritative failure.
A useful order for this proven sequence is: captured host failure; completed child failure; first cleanup-time signal; first cleanup failure; success.
This is not universal. If the child result was still provisional or buffered, the signal may be the first authoritative result.
Synthesized from Linux Fieldwork result-precedence investigations at revision c79d34b65fb2cd8c54234f361f073248c53b513a.