This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients docs@python, gvanrossum, neologix, python-dev, vstinner
Date 2013-12-08.11:22:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I don't like generic "except OSError: pass". Here is a first patch for epoll() to use "except FileNotFoundError: pass" instead. Kqueue selector should also be patched.

I tested to close epoll FD (os.close(epoll.fileno())): on Linux 3.11, epoll.unregister(fd) and epoll.close() don't raise an error. Strange. (The C code looks correct).

(About the commit: I don't like "_fileobj_lookup" method name, we loose the information (compared to "_fileobj_to_fd" name) that the method returns a file dscriptor. I would prefer "_get_fd" or "_get_fileobj_fd".)
Date User Action Args
2013-12-08 11:22:14vstinnersetrecipients: + vstinner, gvanrossum, neologix, docs@python, python-dev
2013-12-08 11:22:14vstinnersetmessageid: <>
2013-12-08 11:22:14vstinnerlinkissue19876 messages
2013-12-08 11:22:13vstinnercreate