<p></p>
<blockquote>
<p>Isn't there a way to duplicate fd's on fork, so that the child can close them at will without harm?<br>
(haven't done fork/exec in a while, tho)</p>
</blockquote>
<p>No, from what I understand, the file-descriptors are duped anyway (they are in the process space), but the file descriptions are shared (in the kernel space). The duped fd point to shared objects...<br>
See <a href="https://copyconstruct.medium.com/the-method-to-epolls-madness-d9d2d6378642" rel="nofollow">https://copyconstruct.medium.com/the-method-to-epolls-madness-d9d2d6378642</a></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/OpenSmalltalk/opensmalltalk-vm/pull/550#issuecomment-770686787">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW22D5XOZUUOS232PYLS4ZTS5ANCNFSM4W4DBPAQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEW5TNPC34OJVKNQI2JLS4ZTS5A5CNFSM4W4DBPA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXX36QY.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/OpenSmalltalk/opensmalltalk-vm/pull/550#issuecomment-770686787",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/550#issuecomment-770686787",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>