<p></p>
<p>IMO, not a good fix.<br>
The fact the the epoll structure is shared between parent and childs (forked) process is a problem not only for the X11 socket connection, but for ALL the polled fd.<br>
We shall close the epoll fd and re-create it in the forked vm.<br>
Probably, we should use a close-on-exec flag for epoll <code>epoll_create1(EPOLL_CLOEXEC )</code>, so as to protect from accidental sharing, unless someone foresee a good scenario for sharing epoll fd (I fail to see one).</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-770674150">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW7VNJNOW645ADZURYDS4ZRM7ANCNFSM4W4DBPAQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEWZXUPQOFFC2QV4TGQDS4ZRM7A5CNFSM4W4DBPA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXXY3ZQ.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-770674150",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/550#issuecomment-770674150",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>