New submission from shaowei.cui <shao...@gmail.com>: in selectmodule.c, I found the code of epoll module ' result = epoll_ctl(epfd, op, fd, &ev); if (errno == EBADF) { /* fd already closed */ result = 0; errno = 0; } ' 'man epoll_ctl' show 'EBADF epfd or fd is not a valid file descriptor.', assume I register an fd of 'open('xxx', O_RDONLY)', return value will be -1, errno will be EBADF, epoll not support 'file descriptors.' as i know, or i register an fd was not be opened.
---------- components: Library (Lib) messages: 92441 nosy: shaovie severity: normal status: open title: Check errno of epoll_ctrl type: behavior versions: Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6868> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com