Rely on kernel errno when logging resource exhaustion

Backport of !660 (merged) for 0.4.7 to fix #40613 (closed)

Merge request reports

Loading