Python, asyncore, asynchat, error on Python 2.7.3 Mac ONLY Bad file descriptor
<p>I got a crash error when I try to force to disconnect user from my custom Python server.
I'm using asyncore and asynchat class.</p>

<p>But when I want to force the disconnection like this</p>

<pre><code>asynchat.async_chat.close (self)
</code></pre>

<p>I got this error :</p>

<pre><code>asyncore.loop()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 216, in loop
    poll_fun(timeout, map)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/asyncore.py", line 145, in poll
    r, w, e = select.select(r, w, e, timeout)
select.error: (9, 'Bad file descriptor')
</code></pre>

<p>But only on Python Mac. No problem on Windows...</p>

<p>There is an execption in the code source of the asyncore.py class. But the server is crashing.</p>

<pre><code>  try:
        r, w, e = select.select(r, w, e, timeout)
    except select.error, err:
        if err.args[0] != EINTR:
            raise
        else:
            return
</code></pre>

<p>So strange...</p>
