<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

>   2. Arrange for the epoll object (or FD) to be closed after fork, but<br>
> before exec, so that the child process can't fiddle with it<br>
<br>
See also:<br>
<br>
<a href="http://bugs.python.org/issue8713" target="_blank">http://bugs.python.org/issue8713</a><br>
<br>
...which suggests Python 3.4 added fork+exec support to multiprocessing.<br>
On Unix and older Python versions, you're stuck with plain fork and all<br>
the attendant horribleness.<br>
<br>
This is a multiprocessing bug IMHO.<br></blockquote><div><br></div><div>Hi again,</div><div><br></div><div>I've found this discussion <a href="https://lkml.org/lkml/2007/10/27/25">https://lkml.org/lkml/2007/10/27/25</a> the scenarios discussed are a bit different but it sounds to me related to the same problem. which makes me think this is not a python bug but may be an epoll design poblem with fork ! </div>
<div><br></div></div></div></div>