<p></p>
<p dir="auto">for anyone reading this: even though <code>pgrep</code> doesn't support getting a list of all process's descendants, maybe for your use case matching by process group id will be perfect.</p>
<pre><code>strace -f $( pgrep -g PID_OF_ANCESTOR | sed 's!^!-p !' )
</code></pre>

<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/strace/strace/issues/193#issuecomment-965630942">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR7PZHKS6ANJAO2KXMLULK35HANCNFSM5DM7G7EA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AOVBTR3PN5RP3THEOX52XMLULK35HA5CNFSM5DM7G7EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHGHFXXQ.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/strace/strace/issues/193#issuecomment-965630942",
"url": "https://github.com/strace/strace/issues/193#issuecomment-965630942",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>