<p>Yup, and also there are any number of other places that do rpmlog() after forking, so that might call for some more central solution. Whatever that may be.</p>
<p>As for MALLOC_CHECK, somebody debugging rpm memory usage with MALLOC_CHECK <em>will</em> want to turn off tracing into children, whereas somebody tracing children memory use specifically under rpm scriptlet execution seems like a highly unlikely situation. Not that MALLOC_CHECK manipulation really belongs to rpm, so I'm not opposed to dropping it, just the rationale seems dubious.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/1047?email_source=notifications&email_token=ADLPZU32CLZ4DUUIO6XVEILRBKJGRA5CNFSM4KPTIFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK26FIQ#issuecomment-582345378">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU4LVEXIWMGSMO3DVITRBKJGRANCNFSM4KPTIFFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU4X6AVUYUGUSTKOVYDRBKJGRA5CNFSM4KPTIFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK26FIQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/1047?email_source=notifications\u0026email_token=ADLPZU32CLZ4DUUIO6XVEILRBKJGRA5CNFSM4KPTIFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK26FIQ#issuecomment-582345378",
"url": "https://github.com/rpm-software-management/rpm/pull/1047?email_source=notifications\u0026email_token=ADLPZU32CLZ4DUUIO6XVEILRBKJGRA5CNFSM4KPTIFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK26FIQ#issuecomment-582345378",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>